Description of problem: in instance, the gears number count is wrong for below method Facter.add(:git_repos) do git_repos_count = Dir.glob("/var/lib/stickshift/*/git/*.git").count setcode { git_repos_count } end I suggest change it to Facter.add(:git_repos) do git_repos_count = Dir.glob("/var/lib/stickshift/**/git/*.git").count setcode { git_repos_count } end Version-Release number of selected component (if applicable): devenv_1827 How reproducible: always Steps to Reproduce: 1.I create 3 apps 2.In the file '/etc/libra/resource_limits.conf' change the value 'max_apps' to 3 3.run: facter capacity Actual results: 200 Expected results: 100 Additional info:
The double '*' won't count gears with dashes in their name so it fails to report scaled gears.
For testing emulate Production by setting CREATE_APP_SYMLINKS to 0 in stickshift-node.conf before creating any applications. Capacity then works as expected, assuming apps means gears in this context.
*** Bug 831633 has been marked as a duplicate of this bug. ***
> The double '*' won't count gears with dashes in their name so it fails to > report scaled gears. why the scalable app uuid name contains dashes "-"? I didn't see the scalable app uuid name contains dashes "-"in my devenv instance.