Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception: Error in creating instance: Duplicate networks are not allowed #51

Open
caglar10ur opened this issue Feb 23, 2015 · 0 comments

Comments

@caglar10ur
Copy link
Contributor

observer throws following

INFO:xos.log:Step <class 'sync_controller_slice_privileges.SyncControllerSlicePrivileges'> succeeded
Step <class 'sync_controller_slice_privileges.SyncControllerSlicePrivileges'> succeeded
INFO:xos.log:Step <class 'sync_controller_slice_privileges.SyncControllerSlicePrivileges'> is a leaf
INFO:xos.log:sync'ing sliver:uninstantiated-1 slice:mysite_myslice controller:MyController OpenStack Juno

PLAY [127.0.0.1] **************************************************************

GATHERING FACTS ***************************************************************
ok: [127.0.0.1]

TASK: [nova_keypair ] *********************************************************
ok: [127.0.0.1] => {"changed": false, "result": "Key present"}

TASK: [nova_compute ] *********************************************************
failed: [127.0.0.1] => {"failed": true}
msg: Error in creating instance: Duplicate networks (8fe6b8b3-e04c-4ab6-9fea-5eaa28a7a21f) are not allowed

FATAL: all hosts have already failed -- aborting

PLAY RECAP ********************************************************************
           to retry, use: --limit @/root/mysite_myslice-1.retry

127.0.0.1                  : ok=2    changed=0    unreachable=0    failed=1


ERROR:xos.log:sync step failed! BEG TRACEBACK
Traceback (most recent call last):
  File "/opt/xos/observer/syncstep.py", line 123, in call
    self.sync_record(o)
  File "/opt/xos/observer/steps/sync_slivers.py", line 125, in sync_record
    res = run_template('sync_slivers.yaml', tenant_fields,path='slivers', expected_num=2)
  File "/opt/xos/observer/ansible.py", line 89, in run_template
    raise Exception(error)
Exception: Error in creating instance: Duplicate net

and ansible playbook shows

root@cb70ab09e317:/opt/opencloud# cat /opt/opencloud/slivers/mysite_myslice-1

---
- hosts: 127.0.0.1
  connection: local
  tasks:

  - nova_keypair:
      state: present
      auth_url: http://172.25.148.240:5000/v2.0/
      login_username: padmin@vicci.org
      login_password: PASSWORD
      login_tenant_name: mysite_myslice
      name: padminATvicciorgmysite_myslice
      public_key: "ssh-rsa SSH_KEY"

  - nova_compute:
      auth_url: http://172.25.148.240:5000/v2.0/
      login_username: padmin@vicci.org
      login_password: PASSWORD
      login_tenant_name: mysite_myslice
      name: mysite_myslice-1

      state: present
      availability_zone: nova:a-rdo5.lcdn.corp.akalab.com
      image_id: 1c963e8d-aee7-4cad-b467-7d8c47bc9bcc
      key_name: padminATvicciorgmysite_myslice
      wait_for: 200
      flavor_id: 3
      user_data: "opencloud:\n   slicename: \"mysite_myslice\"\n   hostname: \"a-rdo5.lcdn.corp.akalab.com\"\n"
      nics:

          - net-id: 8fe6b8b3-e04c-4ab6-9fea-5eaa28a7a21f

          - net-id: 8fe6b8b3-e04c-4ab6-9fea-5eaa28a7a21f
@caglar10ur caglar10ur changed the title Exception: Error in creating instance: Duplicate networksare not allowed Exception: Error in creating instance: Duplicate networks are not allowed Feb 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant