Hide Forgot
Description of problem: ========================= Running aeolus-cleanup is not cleaning up rhevm mounts. Tried using the old config as well as a guess at what the new config would be with no luck. Version-Release number of selected component (if applicable): =============================================================== aeolus-configure-2.5.0-11.el6.noarch Additional info: =================== Configs tried for rhevm_cleanup: --- parameters: enable_https: true enable_security: false classes: - aeolus::profiles::rhevm::disabled instances: detroit: nfs_server: server.redhat.com nfs_export: /home/dl2x_expt nfs_mount_point: /mnt/rhevm-detroit --- parameters: enable_https: true enable_security: false # Uncomment and provide values to match your RHEV environment. # Values below are examples. nfs_server: server.redhat.com nfs_export: /home/dl2x_expt nfs_mount_point: /mnt/rhevm-detroit classes: - aeolus::profiles::rhevm::disabled
Patch posted https://fedorahosted.org/pipermail/aeolus-devel/2012-February/008734.html
Pushed to aeolus-configure master commit ac99a8b6ec2e84ac5a68e1dedc771725d49bd852 2.5-maint commit de97aa1cbe6f2152371d8a9b6bbfcc4db0785256
de97aa1 in aeolus-configure-2.5.0-14
[root@hp-sl2x170zg6-01 nodes]# cat rhevm_configure --- parameters: enable_https: true enable_security: false package_provider: rpm classes: aeolus::conductor: aeolus::image-factory: aeolus::iwhd: aeolus::deltacloud::core: aeolus::profiles::rhevm: instances: blade27: nfs_server: qeblade26.redhat.com nfs_export: /home/blade27_export nfs_mount_point: /mnt/rhevm-nfs deltacloud_username: admin@internal deltacloud_password: password deltacloud_api: https://qeblade26.redhat.com:8443/api deltacloud_data_center: 4051216f-a778-488f-8ae4-5a2541b009ff push_timeout: 1800 [root@hp-sl2x170zg6-01 nodes]# cat rhevm_cleanup #rhevm-only cleanup specification #You can override the default behavior #by renaming this to <fqdn>_cleanup. #This will result in only rhevm being #disabled --- parameters: enable_https: true enable_security: false package_provider: rpm classes: aeolus::profiles::rhevm::disabled: instances: blade27: nfs_mount_point: /mnt/rhevm-nfs [root@hp-sl2x170zg6-01 nodes]# mount /dev/mapper/vg_hpsl2x170zg601-lv_root on / type ext4 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0") /dev/sda1 on /boot type ext4 (rw) /dev/mapper/vg_hpsl2x170zg601-lv_home on /home type ext4 (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) qeblade26.redhat.com:/home/blade27_export on /mnt/rhevm-nfs type nfs (rw) [root@hp-sl2x170zg6-01 nodes]# aeolus-cleanup notice: /Stage[main]/Aeolus::Image-factory::Disabled/Exec[remove_aeolus_templates]/returns: executed successfully notice: /Stage[main]/Aeolus::Conductor::Disabled/Service[aeolus-conductor]/ensure: ensure changed 'running' to 'stopped' notice: /Stage[main]/Aeolus::Image-factory::Disabled/Service[imagefactory]/ensure: ensure changed 'running' to 'stopped' notice: /Stage[main]/Aeolus::Image-factory::Disabled/Service[qpidd]/ensure: ensure changed 'running' to 'stopped' notice: /Stage[main]/Aeolus::Conductor::Disabled/Service[conductor-dbomatic]/ensure: ensure changed 'running' to 'stopped' notice: /Stage[main]/Aeolus::Conductor::Disabled/Service[httpd]/ensure: ensure changed 'running' to 'stopped' notice: /Stage[main]/Aeolus::Conductor::Disabled/Rails::Drop::Db[drop_aeolus_database]/Exec[drop_rails_database]/returns: Using gem require instead of bundler notice: /Stage[main]/Aeolus::Conductor::Disabled/Rails::Drop::Db[drop_aeolus_database]/Exec[drop_rails_database]/returns: executed successfully notice: /Stage[main]/Aeolus::Conductor::Disabled/Postgres::User[aeolus]/Exec[drop_aeolus_postgres_user]/returns: executed successfully notice: /File[/etc/rsyslog.d/aeolus.conf]/ensure: removed notice: /File[/var/lib/aeolus-conductor]/ensure: removed notice: /Stage[main]/Aeolus::Iwhd::Disabled/Exec[clean_iwhd]/returns: Objects deleted: 6 notice: /Stage[main]/Aeolus::Iwhd::Disabled/Exec[clean_iwhd]/returns: executed successfully notice: /Stage[main]/Aeolus::Iwhd::Disabled/Service[iwhd]/ensure: ensure changed 'running' to 'stopped' notice: /Stage[main]/Aeolus::Iwhd::Disabled/Service[mongod]/ensure: ensure changed 'running' to 'stopped' notice: /Stage[main]/Aeolus::Deltacloud::Disabled/Service[deltacloud-core]/ensure: ensure changed 'running' to 'stopped' notice: Finished catalog run in 9.28 seconds [root@hp-sl2x170zg6-01 nodes]# mount /dev/mapper/vg_hpsl2x170zg601-lv_root on / type ext4 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0") /dev/sda1 on /boot type ext4 (rw) /dev/mapper/vg_hpsl2x170zg601-lv_home on /home type ext4 (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) qeblade26.redhat.com:/home/blade27_export on /mnt/rhevm-nfs type nfs (rw) I didn't quite understand the "You can override the default behavior by renaming this to <fqdn>_cleanup" comment in cleanup but I tried it as well without any luck.
I think you meant to run "aeolus-cleanup -p rhevm" which will use /etc/aeolus-configure/nodes/rhevm_cleanup instead of "aeolus-cleanup" which uses /etc/aeolus-configure/nodes/default_cleanup. Good catch on the confusing comment. I've submitted a patch to remove it. https://fedorahosted.org/pipermail/aeolus-devel/2012-February/009118.html
Patch pushed to master aeolus-configure commit 16e7891c22f30797e695186029e5597b3d8323df
dfa0fcc in aeolus-configure-2.5.0-16
Comment removed from clean up file as mentioned in comment 5 cat rhevm_cleanup #rhevm-only cleanup specification --- parameters: enable_https: true enable_security: false package_provider: rpm classes: aeolus::profiles::rhevm::disabled: instances: blade27: nfs_mount_point: /mnt/rhevm-nfs =========================================================== mount /dev/mapper/vg_qeblade06-lv_root on / type ext4 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0") /dev/sda1 on /boot type ext4 (rw) /dev/mapper/vg_qeblade06-lv_home on /home type ext4 (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) qeblade26.rhq.lab.eng.bos.redhat.com:/home/blade27_export on /mnt/rhevm-nfs type nfs (rw) ======================================================================= [root@qe-blade-06 nodes]# aeolus-cleanup -p rhevm notice: /Stage[main]/Aeolus::Profiles::Rhevm::Disabled/Aeolus::Profiles::Rhevm::Disable[blade27]/Exec[umount /mnt/rhevm-nfs]/returns: executed successfully notice: Finished catalog run in 0.46 seconds ====================================================================== [root@qe-blade-06 nodes]# mount /dev/mapper/vg_qeblade06-lv_root on / type ext4 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0") /dev/sda1 on /boot type ext4 (rw) /dev/mapper/vg_qeblade06-lv_home on /home type ext4 (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) ====================================================================== aeolus-cleanup -p rhevm cleans the rhevm mounts Verified in rpm -qa|grep aeolus aeolus-conductor-daemons-0.8.0-40.el6.noarch aeolus-configure-2.5.0-17.el6.noarch rubygem-aeolus-image-0.3.0-12.el6.noarch aeolus-conductor-0.8.0-40.el6.noarch rubygem-aeolus-cli-0.3.0-12.el6.noarch aeolus-all-0.8.0-40.el6.noarch aeolus-conductor-doc-0.8.0-40.el6.noarch