#11313 fmn to fedora-38
Closed: Fixed 16 days ago by zlopez. Opened 19 days ago by kevin.

Our old fmn app is still going to be around for a bit, and it's currently on f36, so we should upgrade it. ;)

I've upgraded staging ( notifs-backend01.stg and notifs-web01.stg ) to f38. I built python-fmn in our f38-infra tags and there's a version in f38-infra-stg now.

The frontend seems to be having problems:

[Mon May 15 21:42:22.130139 2023] [wsgi:error] [pid 667:tid 884] [remote]   File "/usr/lib/python3.11/site-packages/fmn/lib/__init__.py", line 223, in load_rules
[Mon May 15 21:42:22.130148 2023] [wsgi:error] [pid 667:tid 884] [remote]     'args': inspect.getargspec(obj)[0],
[Mon May 15 21:42:22.130153 2023] [wsgi:error] [pid 667:tid 884] [remote]             ^^^^^^^^^^^^^^^^^^
[Mon May 15 21:42:22.130201 2023] [wsgi:error] [pid 667:tid 884] [remote] AttributeError: module 'inspect' has no attribute 'getargspec'

The backend seems to be running, but I am not sure if it's working. We would need the frontend working so I could enable notifications to test.

Once we get this sorted out in stg we need to do the same in prod. ;)

CC: @zlopez

Metadata Update from @kevin:
- Issue priority set to: Waiting on Assignee (was: Needs Review)
- Issue tagged with: medium-gain, medium-trouble, ops

18 days ago

I fixed the issue, tried it on staging, released a new version 2.4.3 and built it in infra-f38 tag.

But I wasn't able to run the playbook ansible-playbook -l staging /srv/web/infra/ansible/playbooks/groups/notifs-web.yml, it failed with:

[WARNING]: Skipping plugin (/srv/web/infra/ansible/callback_plugins/fedora_messaging_callback.py), cannot load: No module named 'fedora_messaging'
ERROR! The field 'hosts' has an invalid value, which includes an undefined variable. The error was: 'myhosts' is undefined. 'myhosts' is undefined

The error appears to be in '/srv/web/infra/ansible/playbooks/include/virt-create.yml': line 1, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

- name: make the virtual instance
  ^ here

I will look into this and try to fix it, not sure why the myhosts variable is empty.

Metadata Update from @zlopez:
- Issue priority set to: Needs Review (was: Waiting on Assignee)

16 days ago

Metadata Update from @zlopez:
- Issue assigned to zlopez

16 days ago

Metadata Update from @zlopez:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

16 days ago

Login to comment on this ticket.

Boards 1
ops Status: Backlog