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

Error when adding additional frontend or hosting nodes -- commit 35383c1 #12

Closed
emuchogu opened this issue Oct 4, 2023 · 2 comments
Closed
Assignees

Comments

@emuchogu
Copy link

emuchogu commented Oct 4, 2023

I encountered the following error while adding either front-end or hosting nodes.

TASK [opennebula.deploy.repository : Install OpenNebula GPG keys] **************************************************************************************************************************************************
Wednesday 04 October 2023  15:06:30 +0300 (0:00:00.070)       0:00:42.667 ***** 
skipping: [node1.lab]
fatal: [node2.lab]: FAILED! => 
  msg: '''dict object'' has no attribute ''content''. ''dict object'' has no attribute ''content'''

I managed to resolve the the error by editing the “roles/repository/tasks/main.ym” file
and changing the 'run_once: true' to 'run_once: false' .
This resolved both adding front-end and hosting nodes.

Bellow are the inventory files I used when trying to add a hosting node:

Installation inventory file:

---
all:
  vars:
    ansible_user: root
    ensure_keys_for: [root]
    one_version: "6.6"
    one_pass: opennebulapass
    admin_pubkey: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDFtEXeYf6zTey4Rfw92xS1uvPim15bj2yk8FaC6XbHRz/xb0sVHq0bTRqPtLetF+S/0o5lN3Uo6WzfXBFvO2MU80B36ThPcaLXdffq+wg4vmYQr8xI2rBIWPQo+4U9w4t/oHlk3yom1PxguNGeiKN/QIR+m1Vqil5fkzJw3PW/aNIlh6hXOA2N3WRq0pjlsHqprRfxsaveGiesczTSAZpQAEsa2Xg7FnGf4fvLRYxUBwQmvl7aaf+kjLb2HBKe+xX2pHevDmsTnXxOgau7cwyiQtUFddsWBlRmVknQ8zfzhyBT5wvxgFt8sY9mb+yYhDf93aueyK1g1+MFmvL6uti3sweEA0lE4uO0UbaWnWJqHzve9mJ8xNa8NTR64/rh68AHgUY8mrw1LbJ2M6GICGV+llOAZ9evA89rE5jiuV4D/uwmWrqLEamGAi98al9tnmjAd5pYm2lxZe7R1EugEXZ6/acJjrbE9NIoxjYekbjP+Zracn5MzgyT/GW7I3yPHGk= edward@lenovo"

    ds:
      mode: ssh
    vn:
      ext-network:
        managed: true
        template:
          VN_MAD: ovswitch
          BRIDGE: main-bridge
          BRIDGE_TYPE: openvswitch
          AR:
            TYPE: IP4
            IP: 192.168.100.200
            SIZE: 20
          NETWORK_ADDRESS: 192.168.100.0
          NETWORK_MASK: 255.255.255.0
          GATEWAY: 192.168.100.1
          DNS: 192.168.100.1

frontend:
  hosts:
    fe1.lab: { ansible_host: 192.168.100.71 }

node:
  hosts:
    node1.lab: { ansible_host: 192.168.100.71 }

Additional node inventory file:

---
all:
  vars:
    ansible_user: root
    ensure_keys_for: [root]
    one_version: "6.6"
    one_pass: opennebulapass
    admin_pubkey: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDFtEXeYf6zTey4Rfw92xS1uvPim15bj2yk8FaC6XbHRz/xb0sVHq0bTRqPtLetF+S/0o5lN3Uo6WzfXBFvO2MU80B36ThPcaLXdffq+wg4vmYQr8xI2rBIWPQo+4U9w4t/oHlk3yom1PxguNGeiKN/QIR+m1Vqil5fkzJw3PW/aNIlh6hXOA2N3WRq0pjlsHqprRfxsaveGiesczTSAZpQAEsa2Xg7FnGf4fvLRYxUBwQmvl7aaf+kjLb2HBKe+xX2pHevDmsTnXxOgau7cwyiQtUFddsWBlRmVknQ8zfzhyBT5wvxgFt8sY9mb+yYhDf93aueyK1g1+MFmvL6uti3sweEA0lE4uO0UbaWnWJqHzve9mJ8xNa8NTR64/rh68AHgUY8mrw1LbJ2M6GICGV+llOAZ9evA89rE5jiuV4D/uwmWrqLEamGAi98al9tnmjAd5pYm2lxZe7R1EugEXZ6/acJjrbE9NIoxjYekbjP+Zracn5MzgyT/GW7I3yPHGk= edward@lenovo"

    ds:
      mode: ssh
    vn:
      ext-network:
        managed: true
        template:
          VN_MAD: ovswitch
          BRIDGE: main-bridge
          BRIDGE_TYPE: openvswitch
          AR:
            TYPE: IP4
            IP: 192.168.100.200
            SIZE: 20
          NETWORK_ADDRESS: 192.168.100.0
          NETWORK_MASK: 255.255.255.0
          GATEWAY: 192.168.100.1
          DNS: 192.168.100.1

frontend:
  hosts:
    fe1.lab: { ansible_host: 192.168.100.71 }

node:
  hosts:
    node1.lab: { ansible_host: 192.168.100.71 }
    node2.lab: { ansible_host: 192.168.100.72 }
@emuchogu emuchogu changed the title Error when adding frontend and nodes instances -- commit 35383c1 Error when adding additional frontend and nodes instances -- commit 35383c1 Oct 4, 2023
@emuchogu emuchogu changed the title Error when adding additional frontend and nodes instances -- commit 35383c1 Error when adding additional frontend or hosting nodes -- commit 35383c1 Oct 4, 2023
@sk4zuzu sk4zuzu self-assigned this Oct 4, 2023
@sk4zuzu
Copy link
Contributor

sk4zuzu commented Oct 4, 2023

Hi @emuchogu,

  1. Could you share which ansible version you are using?
  2. What is the linux distro on fe1.lab, node1.lab and node2.lab ?

🤔

@emuchogu
Copy link
Author

emuchogu commented Oct 4, 2023

Hi @sk4zuzu ,

This is the OS for fe1.lab, node1.lab and node2.lab:

NAME="AlmaLinux"
VERSION="9.2 (Turquoise Kodkod)"
ID="almalinux"
ID_LIKE="rhel centos fedora"
VERSION_ID="9.2"
PLATFORM_ID="platform:el9"
PRETTY_NAME="AlmaLinux 9.2 (Turquoise Kodkod)"
ANSI_COLOR="0;34"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:almalinux:almalinux:9::baseos"
HOME_URL="https://almalinux.org/"
DOCUMENTATION_URL="https://wiki.almalinux.org/"
BUG_REPORT_URL="https://bugs.almalinux.org/"

ALMALINUX_MANTISBT_PROJECT="AlmaLinux-9"
ALMALINUX_MANTISBT_PROJECT_VERSION="9.2"
REDHAT_SUPPORT_PRODUCT="AlmaLinux"
REDHAT_SUPPORT_PRODUCT_VERSION="9.2"

This is the ansible version:

ansible [core 2.14.2]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.11/site-packages/ansible
  ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible
  python version = 3.11.2 (main, May 24 2023, 00:00:00) [GCC 11.3.1 20221121 (Red Hat 11.3.1-4)] (/usr/bin/python3.11)
  jinja version = 3.1.2
  libyaml = True

sk4zuzu added a commit that referenced this issue Oct 5, 2023
rsmontero pushed a commit that referenced this issue Oct 5, 2023
@sk4zuzu sk4zuzu closed this as completed Oct 6, 2023
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

2 participants