← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1381468] [NEW] Type conflict in nova/nova/scheduler/filters/trusted_filter.py using attestation_port default value

 

Public bug reported:

When trusted filter in nova scheduler is running with default value of
attestation_port:

cfg.StrOpt('attestation_port', default='8443', help='Attestation server
port'),

method _do_request() in AttestationService class has this line:

action_url = "https://%s:%d%s/%s"; % (self.host, self.port, self.api_url,
action_url)

It is easy to see that default type of attestation_port is string. 
But in action_url self.port is required as integer (%d). It leads to conflict.

** Affects: nova
     Importance: Undecided
     Assignee: Bartosz Fic (bartosz-fic)
         Status: In Progress


** Tags: low-hanging-fruit nova

** Changed in: nova
     Assignee: (unassigned) => Bartosz Fic (bartosz-fic)

** Changed in: nova
       Status: New => In Progress

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1381468

Title:
  Type conflict in nova/nova/scheduler/filters/trusted_filter.py using
  attestation_port default value

Status in OpenStack Compute (Nova):
  In Progress

Bug description:
  When trusted filter in nova scheduler is running with default value of
  attestation_port:

  cfg.StrOpt('attestation_port', default='8443', help='Attestation
  server port'),

  method _do_request() in AttestationService class has this line:

  action_url = "https://%s:%d%s/%s"; % (self.host, self.port,
  self.api_url, action_url)

  It is easy to see that default type of attestation_port is string. 
  But in action_url self.port is required as integer (%d). It leads to conflict.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1381468/+subscriptions


Follow ups

References