← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1548682] [NEW] xenapi: swap_xapi_host should use urlunparse to create new url

 

Public bug reported:

Currently swap_xapi_host() only use replace() to change the hostname of
original url, but this could not deal with the situation like:

swap_xapi_host("http://hostname:port/hostname";, 'otherserver')

Should use the result of urlparse to create a new result with the host
changed, and then use urlunparse()

** Affects: nova
     Importance: Undecided
     Assignee: Ren Qiaowei (qiaowei-ren)
         Status: New

** Changed in: nova
     Assignee: (unassigned) => Ren Qiaowei (qiaowei-ren)

-- 
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/1548682

Title:
  xenapi: swap_xapi_host should use urlunparse to create new url

Status in OpenStack Compute (nova):
  New

Bug description:
  Currently swap_xapi_host() only use replace() to change the hostname
  of original url, but this could not deal with the situation like:

  swap_xapi_host("http://hostname:port/hostname";, 'otherserver')

  Should use the result of urlparse to create a new result with the host
  changed, and then use urlunparse()

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


Follow ups