When set use-multipath apparmor denies running /usr/sbin/multipathd
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Nova Compute Charm |
Fix Released
|
High
|
Liam Young |
Bug Description
There's missing configurations of apparmon so nova can run /usr/bin/multipathd
when use-multipath option is set to charm
and one runs openstack server add volume...
```
2021-04-22 12:52:57.696 2032868 ERROR oslo_messaging.
2021-04-22 12:52:57.696 2032868 ERROR oslo_messaging.
2021-04-22 12:52:57.696 2032868 ERROR oslo_messaging.
2021-04-22 12:52:57.696 2032868 ERROR oslo_messaging.
2021-04-22 12:52:57.696 2032868 ERROR oslo_messaging.
...
2021-04-22 12:52:57.696 2032868 ERROR oslo_messaging.
2021-04-22 12:52:57.696 2032868 ERROR oslo_messaging.
2021-04-22 12:52:57.696 2032868 ERROR oslo_messaging.
2021-04-22 12:52:57.696 2032868 ERROR oslo_messaging.
2021-04-22 12:52:57.696 2032868 ERROR oslo_messaging.
2021-04-22 12:52:57.696 2032868 ERROR oslo_messaging.
2021-04-22 12:52:57.696 2032868 ERROR oslo_messaging.
2021-04-22 12:52:57.696 2032868 ERROR oslo_messaging.
2021-04-22 12:52:57.696 2032868 ERROR oslo_messaging.
2021-04-22 12:52:57.696 2032868 ERROR oslo_messaging.
2021-04-22 12:52:57.696 2032868 ERROR oslo_messaging.
2021-04-22 12:52:57.696 2032868 ERROR oslo_messaging.
2021-04-22 12:52:57.696 2032868 ERROR oslo_messaging.
2021-04-22 12:52:57.696 2032868 ERROR oslo_messaging.
```
dmesg:
```
[510617.168463] audit: type=1400 audit(161909597
[510617.168473] audit: type=1400 audit(161909597
```
The workaround for it is to set app armor profile to complain
$ aa-complain /usr/bin/
Then attaching works as expected
```
2021-04-22 13:03:03.879 2032868 INFO nova.virt.
2021-04-22 13:03:04.127 2032868 INFO nova.compute.
2021-04-22 13:03:06.937 2032868 INFO os_brick.
2021-04-22 13:03:08.973 2032868 INFO os_brick.
```
description: | updated |
Changed in charm-nova-compute: | |
status: | New → Confirmed |
Changed in charm-nova-compute: | |
status: | Confirmed → New |
Changed in charm-nova-compute: | |
status: | New → Confirmed |
importance: | Undecided → High |
assignee: | nobody → Liam Young (gnuoy) |
The dmesg DENIED:
[510617.168463] audit: type=1400 audit(161909597 7.187:9276) : apparmor="DENIED" operation="exec" profile= "/usr/bin/ nova-compute" name="/ usr/sbin/ multipathd" pid=2094222 comm="privsep- helper" requested_mask="x" denied_mask="x" fsuid=0 ouid=0 7.187:9277) : apparmor="DENIED" operation="exec" profile= "/usr/bin/ nova-compute" name="/ usr/sbin/ multipathd" pid=2094222 comm="privsep- helper" requested_mask="x" denied_mask="x" fsuid=0 ouid=0
[510617.168473] audit: type=1400 audit(161909597
State that profile for nova-compute should be set for /usr/sbin, not /sbin/multipathd as seen on: /github. com/openstack/ charm-nova- compute/ blob/master/ templates/ usr.bin. nova-compute# L87
https:/