get_provider_type not compatible with juju2

Bug #1663732 reported by Ryan Beisner
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Openstack Mojo Testing
New
Undecided
Unassigned

Bug Description

The get_provider_type helper is not compatible with Juju2.

#############################################################################
Create sdn on overcloud
#############################################################################

2017-02-10 19:39:32 [INFO] Pulling secrets from /srv/mojo/LOCAL/openstack/specs/full_stack/next_deploy/mitaka/ to /srv/moj
/openstack/xenial/_20171310_191320/local
2017-02-10 19:39:32 [WARNING] Automatic secrets phase ran but secrets directory /srv/mojo/LOCAL/openstack/specs/full_stack
next_deploy/mitaka/ does not exist!
2017-02-10 19:39:32 [INFO] Running script network_setup.py
2017-02-10 19:39:34 [ERROR] 2017-02-10 19:39:34 [INFO] Setting up gre network
2017-02-10 19:39:34 [INFO] Using config /srv/mojo/openstack/xenial/_20171310_191320/spec/specs/full_stack/next_deploy/mita
a//network.yaml
2017-02-10 19:39:34 [INFO] Consuming network environment variables as overrides.
2017-02-10 19:39:34 [INFO] Network info: default_gateway: 10.7.0.1
end_floating_ip: 10.7.200.254
external_dns: 10.111.222.2
external_net_cidr: 10.7.0.0/16
external_net_name: ext_net
external_subnet_name: ext_net_subnet
network_type: gre
private_net_cidr: 192.168.21.0/24
router_name: provider-router
start_floating_ip: 10.7.150.0

Traceback (most recent call last):
  File "/srv/mojo/openstack/xenial/_20171310_191320/spec/specs/full_stack/next_deploy/mitaka/network_setup.py", line 108,
n <module>
    sys.exit(main(sys.argv))
  File "/srv/mojo/openstack/xenial/_20171310_191320/spec/specs/full_stack/next_deploy/mitaka/network_setup.py", line 85, i
 main
    if mojo_utils.get_provider_type() == 'openstack':
  File "/srv/mojo/openstack/xenial/ROOTFS/srv/mojo/openstack/xenial/_20171310_191320/spec/helper/setup/utils/mojo_utils.py
, line 250, in get_provider_type
    return juju_env_contents['environments'][juju_env]['type']
KeyError: 'dima-overcloud:admin/release-testing'

Tags: uosci
Revision history for this message
Dmitrii Shcherbakov (dmitriis) wrote :

Caught during a mojo spec run for xenial-mitaka with juju 2.x:

Version: 1:2.1~beta5-0ubuntu1~16.04.5~juju1

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.