BUG 1677425: Gracefully handle NetworkInterfaces() returning NotSuppo… #7175

Merged
merged 1 commit into from Mar 30, 2017

Conversation

Projects
None yet
5 participants
Member

hmlanigan commented Mar 30, 2017

…rted

Please provide the following details to expedite Pull Request review:


Description of change

Fix for Bug 1675799, gracefully handle NetworkInterface() returning NotSupported
when a Network Environ is available.

QA steps

  1. juju bootstrap to a rackspace or openstack cloud.
  2. juju add-machine
  3. let machine deploy and install
  4. juju add-machine lxd:0
  5. wait for container to start
  6. juju remove-machine 0/lxd/0
  7. lxd machine should be removed.

Documentation changes

no

Bug reference

https://bugs.launchpad.net/juju/+bug/1677425

axw approved these changes Mar 30, 2017

- if err != nil {
+ if errors.IsNotSupported(err) {
+ // It's possible to have a networking environ, but not support
+ // NetworkInterfaces(). In leiu of adding SupportsNetworkInterfaces():
@axw

axw Mar 30, 2017

Member

go fmt?
s/leiu/lieu/

Member

hmlanigan commented Mar 30, 2017

$$merge$$

Owner

wallyworld commented Mar 30, 2017

$$merge$$

Contributor

jujubot commented Mar 30, 2017

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

Contributor

jujubot commented Mar 30, 2017

Build failed: Tests failed
build url: http://juju-ci.vapour.ws:8080/job/github-merge-juju/10577

Member

anastasiamac commented Mar 30, 2017

$$merge$$

Contributor

jujubot commented Mar 30, 2017

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

Contributor

jujubot commented Mar 30, 2017

Build failed: Tests failed
build url: http://juju-ci.vapour.ws:8080/job/github-merge-juju/10579

Owner

wallyworld commented Mar 30, 2017

$$sigh$$

Contributor

jujubot commented Mar 30, 2017

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

@jujubot jujubot merged commit cf4dd62 into juju:develop Mar 30, 2017

@hmlanigan hmlanigan deleted the hmlanigan:bug-1677425 branch Mar 30, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment