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

[BUG]: ome_device_quick_deploy will not deploy a new config to a slot with IPv6 disabled #533

Closed
jason-technology opened this issue Aug 15, 2023 · 2 comments · Fixed by #603
Labels
area/ome-modular OME-Modular modules needs-triage Issue requires triage. type/bug Something isn't working

Comments

@jason-technology
Copy link

Bug Description

If there is already a configuration on a Quick Deploy slot, ipv6_enabled: False will apply properly.
If this is a new slot and the first configuration run, ipv6_enabled: False will result in an error about ipv6_prefix_length being incorrect. This happens regardless of the IPv6 prefix setting.
Running once with enabled, then a second time with disabled works.

Component or Module Name

ome_device_quick_deploy

Ansible Version

2.15.2

Python Version

3.10.12

iDRAC/OME/OME-M version

OME-M 2.10.10

Operating System

Ubuntu 22.04.3 LTS

Playbook Used

  • hosts: MX7000ChassisSlots
    connection: local
    gather_facts: false
    name: Chassis Server Slot Operations

    tasks:

    • name: Configure Slot Quick Deploy settings
      dellemc.openmanage.ome_device_quick_deploy:
      hostname: "{{ hostvars['OMEModular']['ome_ip'] }}"
      username: "{{ hostvars['OMEModular']['ome_login'] }}"
      password: "{{ hostvars['OMEModular']['ome_password'] }}"
      validate_certs: false
      device_service_tag: "{{ parent_chassis }}"
      setting_type: ServerQuickDeploy
      quick_deploy_options:
      # password: "{{ quick_password }}"
      ipv4_enabled: true
      ipv4_network_type: Static
      ipv4_subnet_mask: "{{ quick_netmask }}"
      ipv4_gateway: "{{ quick_gateway }}"
      ipv6_enabled: false
      ipv6_network_type: Static
      ipv6_prefix_length: 64
      ipv6_gateway: "::"
      slots:
      - slot_id: "{{ slot_id }}"
      slot_ipv4_address: "{{ quick_ip }}"
      slot_ipv6_address: "::"
      register: quick_slot_output
      tags:

      • quick_slot_setup
    • name: Debug Slot Quick Deploy
      ansible.builtin.debug:
      var: quick_slot_output
      tags:

      • quick_slot_setup_debug

Logs

.

Steps to Reproduce

Run playbook against new chassis using ipv6_enabled: False

Expected Behavior

Slot configured

Actual Behavior

Ansible Errors with "Unable to complete"
OME-M errors with incorrect ipv6 prefix setting

Screenshots

No response

Additional Information

No response

@jason-technology jason-technology added needs-triage Issue requires triage. type/bug Something isn't working labels Aug 15, 2023
@anupamaloke anupamaloke added the area/ome-modular OME-Modular modules label Aug 30, 2023
@sachin-apa
Copy link
Collaborator

@jason-technologywhen i try to reproduce this defect i always end up with #532 , Can you please help me out on steps to reproduce, May be elaborate/update the issue with more details. I understand it should be ran on new chassis, is there any alternatives to reproduce this?

@sachin-apa
Copy link
Collaborator

In our code we are checking if ipv6 input, if false we were just sending back whatever the API GET returns to us.. and the API GET is returning the default prefix length as 0 and hence you are seeing the job failure calling out that prefix length is invalid.

The suggested workaround is good, when it comes as default value from the argument specs instead of hard coding which can be misleading to users who don't send those values from a playbook.

The main issue is that when we send ipv6 as disable/false and prefix length as 0(invalid) the OME-M job should ideally be ignoring the ipv6 settings as we have disabled it . But it is failing with a prefix length error which we have reported to OME-M team internally and they are gonna fix it (ETA yet to get updates).

@sachin-apa sachin-apa linked a pull request Jan 16, 2024 that will close this issue
8 tasks
@sachin-apa sachin-apa moved this from To do to Done in OpenManage Ansible Collection May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ome-modular OME-Modular modules needs-triage Issue requires triage. type/bug Something isn't working
Development

Successfully merging a pull request may close this issue.

3 participants