Closed ivotron closed 7 years ago
Hi @ivotron
If you are using https://chi.tacc.chameleoncloud.org the shared net name should be : shared-subnet1
. See https://enos.readthedocs.io/en/stable-ocata/provider/openstack.html#id4
The configuration should look like :
provider:
type: chameleonbaremetal
key_name: #your key name
walltime: '2:00:00'
subnet: {'name': 'shared-subnet1'}
resources:
compute:
control: 1
network: 1
compute: 1
Moreover I suggest you to update enos to the latest version since #171 has been fixed recently.
Thanks a lot. Updated and fixed YAML:
provider:
type: chameleonbaremetal
key_name: mykey
image_name: CC-Ubuntu14.04-Docker
subnet: {'name': 'shared-subnet1'}
resources:
storage:
compute: 1
Can I bother with one more question related to this? Is it possible to provide the key name via an environment variable? That would make it easier to re-use/share a reservation YAML file between multiple users (and would also be useful for automated tests).
After using the above reservation.yaml
now I get the following:
INFO:root:[nova]: Polling the Deployment
INFO:root:[nova]: 0 deployed servers
INFO:root:[nova]: 0 undeployed servers
INFO:root:[nova]: Polling the Deployment
INFO:root:[nova]: 1 deployed servers
INFO:root:[nova]: 0 undeployed servers
INFO:root:[neutron]: Using floating ip: {u'router_id': None, u'status': u'DOWN', u'tenant_id': u'09f0a22bcd7149d7aff76
5d361d45e13', u'floating_network_id': u'ef2d2d34-635a-4f89-89b6-436e188ad82e', u'fixed_ip_address': None, u'floating_i
p_address': u'129.114.109.35', u'port_id': None, u'id': u'fa58c4de-4dd2-4b3e-a50d-9c5b05e9895d'}
INFO:root:[nova]: Reusing <Server: enos-storage-0> as gateway
INFO:root:{'compute': [<Server: enos-storage-0>], 'storage': [<Server: enos-storage-0>]}
ERROR:root:Exception
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/enos/utils/enostask.py", line 77, in decorated
fn(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/enos/enos.py", line 117, in up
base_inventory = seekpath(env['config']['inventory'])
KeyError: 'inventory'
The instance gets launched successfully on chameleon. I also tried to use destroy
unsuccessfully:
INFO:root:Kolla command
INFO:root:{'--': True, '--env': '/experiment/current', '-v': 0, '<command>': ['destroy', '--yes-i-really-really-mean-i
t'], '--silent': False, 'kolla': True}
INFO:root:['/experiment/enos_2017-08-04T14:18:20.404542/kolla/tools/kolla-ansible', 'destroy', '--yes-i-really-really-
mean-it', '-i', '/experiment/enos_2017-08-04T14:18:20.404542/multinode', '--passwords', '/experiment/enos_2017-08-04T1
4:18:20.404542/passwords.yml', '--configdir', '/experiment/enos_2017-08-04T14:18:20.404542']
ERROR:root:Exception
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/enos/utils/enostask.py", line 77, in decorated
fn(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/enos/utils/enostask.py", line 103, in decorator
return fn(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/enos/enos.py", line 667, in kolla
call(kolla_cmd)
File "/usr/local/lib/python2.7/subprocess.py", line 168, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/local/lib/python2.7/subprocess.py", line 390, in __init__
errread, errwrite)
File "/usr/local/lib/python2.7/subprocess.py", line 1024, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
ivo@mbp:~/src/sirius-popper/experiments/multinode
$ ls -l
total 8.0K
lrwxrwxrwx 1 ivo staff 43 Aug 4 10:18 current -> /experiment/enos_2017-08-04T14:18:20.404542
drwxr-xr-x 3 ivo staff 102 Aug 4 10:28 enos_2017-08-04T14:18:20.404542/
-rwxr-xr-x 1 ivo staff 0 Aug 3 10:43 reservation.yaml
Thanks!
See below for a minimal configuration file. Maybe you missed the inventory. The inventory will be looked up in the source if not found from your local directory.
Note also that to get a functionnal deployment you need one control, one network and at least one compute role.
---
provider:
type: chameleonbaremetal
key_name: #your key name
walltime: '2:00:00'
subnet: {'name': 'shared-subnet1'}
resources:
compute:
control: 1
network: 1
compute: 1
# ############################################### #
# Inventory to use #
# ############################################### #
# This will describe the topology of your services
inventory: inventories/inventory.sample
# ############################################### #
# docker registry parameters
# ############################################### #
registry:
ceph: False
# ############################################### #
# Enos Customizations #
# ############################################### #
enable_monitoring: no
# ############################################### #
# Kolla parameters #
# ############################################### #
# Repository
kolla_repo: "https://git.openstack.org/openstack/kolla-ansible"
kolla_ref: "stable/ocata"
# Vars : globals.yml
kolla:
kolla_base_distro: "centos"
kolla_install_type: "source"
docker_namespace: "beyondtheclouds"
enable_heat: "no"
@ivotron any progress ?
after adding missing YAML elements, all worked OK. Thanks!
This is the example:
This is the output: