Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2172)

Issue 6497072: juju status with openstack data omission

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 8 months ago by hazmat
Modified:
11 years, 7 months ago
Reviewers:
mp+122394, gz
Visibility:
Public.

Description

juju status with openstack data omission Running status on openstack providers doesn't show machine addresses in status (unit addresses are shown). This is due to an optimization in status which relies on provider.get_machines to return ip address information on machines in an env instead of fetching details per machine. The ostack provider was using an api which did not provide ip addresses when retrieving multiple servers. The fix is to out to a listing api that does. https://code.launchpad.net/~hazmat/juju/ostack-status/+merge/122394 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -11 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M juju/providers/openstack/client.py View 1 chunk +1 line, -0 lines 1 comment Download
M juju/providers/openstack/provider.py View 1 chunk +1 line, -1 line 0 comments Download
M juju/providers/openstack/tests/test_getmachines.py View 6 chunks +8 lines, -8 lines 0 comments Download
M juju/providers/openstack/tests/test_shutdown.py View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 2
hazmat
Please take a look.
11 years, 8 months ago (2012-09-01 14:51:28 UTC) #1
gz
11 years, 7 months ago (2012-09-03 11:02:41 UTC) #2
Code looks good.

Annoyingly this is from a specific change I made during development on to not
use details when listing all servers. Addresses are certainly not included in
what gets returned from canonistack currently though.

Getting a single server always gives full details, which was not clear
previously.

https://codereview.appspot.com/6497072/diff/1/juju/providers/openstack/client.py
File juju/providers/openstack/client.py (right):

https://codereview.appspot.com/6497072/diff/1/juju/providers/openstack/client...
juju/providers/openstack/client.py:370: # KT 2012-08-31: Works on canonistack,
hp.
Can just delete the get_server_details method, it confused me and confused you
as well. Plain get_server does the right thing.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b