Created
March 30, 2014 15:11
-
-
Save michaeltchapman/9874191 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@control1 ~]# puppet apply test.pp | |
Notice: Compiled catalog for control1.domain.name in environment production in 0.09 seconds | |
Notice: /Stage[main]/Main/Nova_aggregate[test_agg]/ensure: created | |
Notice: Finished catalog run in 3.08 seconds | |
[root@control1 ~]# nova aggregate-remove-host test_agg compute1 | |
Host compute1 has been successfully removed from aggregate 3 | |
+----+----------+-------------------+-------+-------------------------+ | |
| Id | Name | Availability Zone | Hosts | Metadata | | |
+----+----------+-------------------+-------+-------------------------+ | |
| 3 | test_agg | - | | 'gpu=False', 'ssd=True' | | |
+----+----------+-------------------+-------+-------------------------+ | |
[root@control1 ~]# nova aggregate-delete test_agg | |
Aggregate 3 has been successfully deleted. | |
[root@control1 ~]# puppet apply test.pp | |
Notice: Compiled catalog for control1.domain.name in environment production in 0.09 seconds | |
Notice: /Stage[main]/Main/Nova_aggregate[test_agg]/ensure: created | |
Notice: Finished catalog run in 3.12 seconds | |
[root@control1 ~]# nova aggregate-remove-host test_agg compute1 | |
Host compute1 has been successfully removed from aggregate 4 | |
+----+----------+-------------------+-------+-------------------------+ | |
| Id | Name | Availability Zone | Hosts | Metadata | | |
+----+----------+-------------------+-------+-------------------------+ | |
| 4 | test_agg | - | | 'gpu=False', 'ssd=True' | | |
+----+----------+-------------------+-------+-------------------------+ | |
[root@control1 ~]# puppet apply test.pp | |
Notice: Compiled catalog for control1.domain.name in environment production in 0.11 seconds | |
Error: undefined method `each' for "":Puppet::Util::Execution::ProcessOutput | |
Error: /Stage[main]/Main/Nova_aggregate[test_agg]/hosts: change from to compute1 failed: undefined method `each' for "":Puppet::Util::Execution::ProcessOutput | |
Notice: Finished catalog run in 2.66 seconds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nova_aggregate { 'test_agg': | |
metadata => 'ssd=True,gpu=False', | |
hosts => 'compute1' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tried the same procedure and this works for me: