#11313 fmn to fedora-38
Closed: Fixed a year ago by zlopez. Opened a year 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 10.3.166.74:45478]   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 10.3.166.74:45478]     'args': inspect.getargspec(obj)[0],
[Mon May 15 21:42:22.130153 2023] [wsgi:error] [pid 667:tid 884] [remote 10.3.166.74:45478]             ^^^^^^^^^^^^^^^^^^
[Mon May 15 21:42:22.130201 2023] [wsgi:error] [pid 667:tid 884] [remote 10.3.166.74:45478] 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

a year 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)

a year ago

Metadata Update from @zlopez:
- Issue assigned to zlopez

a year ago

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

a year ago

Log in to comment on this ticket.

Metadata
Boards 1
ops Status: Backlog