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

os_port: unexpected keyword argument 'device_id' #22662

Closed
9us7av0 opened this issue Mar 15, 2017 · 6 comments
Closed

os_port: unexpected keyword argument 'device_id' #22662

9us7av0 opened this issue Mar 15, 2017 · 6 comments
Assignees
Labels
affects_2.2 This issue/PR affects Ansible v2.2 bug This issue/PR relates to a bug. cloud module This issue/PR relates to a module. openstack support:community This issue/PR relates to code supported by the Ansible community.

Comments

@9us7av0
Copy link

9us7av0 commented Mar 15, 2017

ISSUE TYPE
  • Bug Report
COMPONENT NAME

os_port

ANSIBLE VERSION
ansible 2.2.1.0

CONFIGURATION
OS / ENVIRONMENT
SUMMARY
STEPS TO REPRODUCE
- name: create an instance
  os_server:
     state: present
     name: "{{cvm_prefix}}{{ item }}"
     image: "{{ cvm_image }}"
     security_groups: "{{ cvm_security_groups }}"
     auto_ip: no
     flavor: "{{ cvm_flavor }}"
     nics: "{{ cvm_nics }}"
     wait: true
     meta: "Type={{ cvm_instancemeta }},Environment={{ cvm_env }}"
  register: "newnodes" 
  with_sequence:
    count={{ cvm_count }}

- name: add instance to dynamic inv
  add_host: 
     name="{{ item.openstack.private_v4 }}"
     groups=created_nodes
     ansible_user=centos
     machine_name="{{ item.openstack.name }}"
     id="{{ item.openstack.id }}"
  with_items: "{{ newnodes.results }}"

- name: stop an instance
  os_server_actions:
     action: stop
     server: "{{cvm_prefix}}{{ item }}"
     timeout: 200
  with_sequence:
    count={{ cvm_count }}


- name: enable BMSIP interface on eth1
  os_port:
    name: eth1
    device_id: 2e6c862f-c907-4b92-b0dd-aea1fccb69dc
    device_owner: "compute:nova"
    network: 888c9aff-3e4c-484b-a957-161753c17bab
    admin_state_up: true

- name: start an instance
  os_server_actions:
    action: start
    server: "{{cvm_prefix}}{{ item }}"
    timeout: 200
  with_sequence:
    count={{ cvm_count }}
EXPECTED RESULTS
ACTUAL RESULTS

@ansibot
Copy link
Contributor

ansibot commented Mar 15, 2017

@ansibot ansibot added affects_2.2 This issue/PR affects Ansible v2.2 bug_report cloud module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. openstack labels Mar 15, 2017
@ansibot ansibot assigned emonty and rcarrillocruz and unassigned emonty Mar 15, 2017
@nitzmahone nitzmahone removed the needs_triage Needs a first human triage before being processed. label Mar 16, 2017
@Benoitbleau
Copy link

Benoitbleau commented Mar 22, 2017

There's a PR to fix this issue: openstack/shade#4

@Thingee
Copy link
Contributor

Thingee commented Mar 23, 2017

@Benoitbleau thanks. I have pushed this up for review in gerrit. https://review.openstack.org/#/c/449271/

@emonty
Copy link
Contributor

emonty commented Mar 25, 2017

openstack/shade@9f2287c - Has been merged - will release soon (probably Monday, so that I can otherwise weekend)

@ansibot ansibot added the support:community This issue/PR relates to code supported by the Ansible community. label Jun 29, 2017
@ansibot
Copy link
Contributor

ansibot commented Jul 18, 2017

@Shrews
Copy link
Contributor

Shrews commented Aug 7, 2017

Since this merged into shade long ago, and there has been no other activity on this report, marking this as resolved.

bug_resolved

@ansibot ansibot closed this as completed Aug 7, 2017
@ansibot ansibot added bug This issue/PR relates to a bug. and removed bug_report labels Mar 7, 2018
@ansible ansible locked and limited conversation to collaborators Apr 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.2 This issue/PR affects Ansible v2.2 bug This issue/PR relates to a bug. cloud module This issue/PR relates to a module. openstack support:community This issue/PR relates to code supported by the Ansible community.
Projects
None yet
Development

No branches or pull requests

8 participants