Specifying architecture in a state causes failure
Salt 0.16.3 on CentOS 6 (package from EPEL), following state fails:
java_packages:
pkg.installed:
- pkgs:
- java-1.7.0-openjdk.x86_64
- java-1.7.0-openjdk-devel.x86_64
Where as the state works as expected when defined as:
java_packages:
pkg.installed:
- pkgs:
- java-1.7.0-openjdk
- java-1.7.0-openjdk-devel
@terminalmage You've been dealing with the architecture issues, any ideas?
Thanks for the report.
@jalons The docs are pretty clear on this, the arch is only expected for 32-bit packages on 64-bit CentOS.
I guess we could make salt just ignore the arch if it matches the OS arch, but this would be a low-priority change. In the meantime, if you leave off the arch for 64-bit packages, you should be fine.
CentOS 5.10 x86_64
I guess it would be better when specifying any architecture could work.
compatibility_packages:
pkg.installed:
- pkgs:
- compat-libstdc++-33.x86_64
- compat-libstdc++-33.i386
Results:
----------
ID: compatibility_packages
Function: pkg.installed
Result: False
Comment: The following package(s) were not found, and no possible matches were found in the package db: compat-libstdc++-33.x86_64
Changes:
It's rather counter-intuitive (even if it is clear in documents): *.i386 architecture works fine while specifying *.x86_64 fails.
At the same time (from the user point of view) yum perfectly respond to both packages:
yum info compat-libstdc++-33.x86_64 compat-libstdc++-33.i386
...
@uvsmtid The ability for a state to reliably tell if it was successful is dependent on the submitted package names matching the names of the packages returned when pkg.list_pkgs is run.
Like I said before, the probable soluton for this is to ignore the architecture if it matches the OS architecture.