salt icon indicating copy to clipboard operation
salt copied to clipboard

pkg.list_pkgs reports uninstalled msi package as installed

Open gtmacdonald opened this issue 12 years ago • 7 comments

I'm having an issue where pkg.list_pkgs picks up an msi package as still installed even though it's been successfully uninstalled. I'm seeing this with the mysql installer.

mysql_installer: '1.3.6.0': full_name: 'MySQL Installer' msiexec: True installer: 'salt://win/installers/mysql-installer-community-5.6.17.0.msi' install_flags: '/qn' uninstaller: 'salt://win/installers/mysql-installer-community-5.6.17.0.msi' uninstall_flags: '/qn' locale: en_US reboot: False

gtmacdonald avatar Apr 07 '14 23:04 gtmacdonald

@gtmacdonald What does

salt your-minion cmd.run 'wmic product get Name, Version, IdentifyingNumber'

say? Does it still list anything MySQL-related?

eliasp avatar Apr 08 '14 12:04 eliasp

I don't see anything. Here's the output: IdentifyingNumber Name Version
{121634B0-2F4B-11D3-ADA3-00C04F52DD52} Windows Installer Clean Up 3.00.00.0000
{437AC169-780B-47A9-86F6-14D43C8F596B} MySQL Installer 1.3.6.0
{42B25C20-2D3F-BEE2-3627-B13CC30BDB38} CCC Help Hungarian 2011.1013.0753.12275
{479F7070-9F87-4A05-E1C3-E9B8781F75B3} CCC Help Czech 2011.1013.0753.12275
{1AD147D0-BE0E-3D6C-AC11-64F6DC4163F1} Microsoft .NET Framework 4.5 4.5.50709
{1D8E6291-B0D5-35EC-8441-6616F567A0F7} Microsoft Visual C++ 2010 x64 Redistributable - 10.0.40219 10.0.40219
{ED0D8922-7F6C-2B5C-A09A-3FE459E4DDB1} CCC Help Greek 2011.1013.0753.12275
{B4B6C5E2-7341-DEC2-75DD-DE3C5C885B50} CCC Help Norwegian 2011.1013.0753.12275
{9A853BA3-28A2-99D5-B125-75891A08D26A} ccc-utility64 2011.1013.754.12275
{87DDB284-DB4B-FC20-B78E-A66B008132BD} Catalyst Control Center Profiles Mobile 2011.1013.754.12275
{F8D6C194-6F77-F864-18E2-6EFF3BD6A18D} Catalyst Control Center Localization All 2011.1013.754.12275
{C7ECA0F4-805E-358E-09EA-DF586A547EB1} CCC Help German 2011.1013.0753.12275
{0A81E705-4FF9-DC83-302D-50F3B847F77B} CCC Help Polish 2011.1013.0753.12275
{230D1595-57DA-4933-8C4E-375797EBB7E1} Bluetooth Win7 Suite (64) 7.2.0.56
{314F6B36-C0B5-E70A-A8DC-E1A126552409} CCC Help Korean 2011.1013.0753.12275
{A9AF76B6-CC38-F234-FE9B-670439204BDA} CCC Help Danish 2011.1013.0753.12275
{9BE518E6-ECC6-35A9-88E4-87755C07200F} Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.6161 9.0.30729.6161
{4C90AC57-A494-7E1A-57A6-6B53167BDC3C} CCC Help Chinese Standard 2011.1013.0753.12275
{74257E77-412D-ACF4-C279-82936D687083} CCC Help Russian 2011.1013.0753.12275
{768C6D38-F6B8-F35C-1D4E-CE764B85B178} CCC Help Italian 2011.1013.0753.12275
{5442DAB8-7177-49E1-8B22-09A049EA5996} Renesas Electronics USB 3.0 Host Controller Driver 2.0.26.0
{E3201FB8-4969-30D4-EFC2-B153EAEA6487} Catalyst Control Center 2011.1013.754.12275
{AA6BB7D8-CD01-01CF-6380-98F856E505BD} CCC Help French 2011.1013.0753.12275
{6F9B77F8-DF26-DB18-98B6-171225AA0CDD} CCC Help Thai 2011.1013.0753.12275
{A92DAB39-4E2C-4304-9AB6-BC44E68B55E2} Google Update Helper 1.3.23.9
{EBE4F079-3395-110E-CC67-E1826AA32934} CCC Help Turkish 2011.1013.0753.12275
{C68FF4E9-C858-14E1-27B2-BEB8C3982FBA} Catalyst Control Center InstallProxy 2011.1013.754.12275
{B77EFA0B-9BD3-4122-9F9A-15A963B5EA24} Intel(R) Turbo Boost Technology Monitor 2.0 2.0.82.0
{9838502B-CB01-F07C-355E-6A99B472AF6F} CCC Help Spanish 2011.1013.0753.12275
{546DB8EB-CA28-144F-AB99-1EE2D6A47342} CCC Help Japanese 2011.1013.0753.12275
{B175520C-86A2-35A7-8619-86DC379688B9} Microsoft Visual C++ 2012 x86 Additional Runtime - 11.0.61030 11.0.61030
{710f4c1c-cc18-4c49-8cbf-51240c89a1a2} Microsoft Visual C++ 2005 Redistributable 8.0.61001
{FCA8077C-65B4-0F40-5BCF-8CACC67899AF} CCC Help Portuguese 2011.1013.0753.12275
{63A137AC-FD79-7A5E-3CD5-5605F74AB9E0} CCC Help Swedish 2011.1013.0753.12275
{4A2AFE1D-59B9-0300-0052-21BA66BB2FF5} CCC Help Dutch 2011.1013.0753.12275
{9A25302D-30C0-39D9-BD6F-21E6EC160475} Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.17 9.0.30729
{503F672D-6C84-448A-8F8F-4BC35AC83441} AMD APP SDK Runtime 2.5.775.2
{9958978D-994A-06A7-F34F-1E8276A78754} CCC Help Chinese Traditional 2011.1013.0753.12275
{57CA189D-BAEB-49BC-AE75-CE70E9B775E1} Catalyst Control Center - Branding 1.00.0000
{BD95A8CD-1D9F-35AD-981A-3E7925026EBB} Microsoft Visual C++ 2012 x86 Minimum Runtime - 11.0.61030 11.0.61030
{AA36E9DD-AFB7-E41D-21B6-E042E72FBC50} CCC Help Finnish 2011.1013.0753.12275
{EA4954FD-C685-1C7D-16F3-9BC2FD5E6BD3} AMD Catalyst Install Manager 3.0.847.0
{D4E0052F-D2F6-CC47-216E-0F98AA3D02FD} CCC Help English 2011.1013.0753.12275

gtmacdonald avatar Apr 08 '14 18:04 gtmacdonald

How did you uninstall the package? Was it all handled using Salt? I'm wondering if an out-of-band uninstall left some artifacts or something. I don't really know much about the way windows handles this stuff, but it was just a thought. We'll investigate.

basepi avatar Apr 09 '14 14:04 basepi

@gtmacdonald The output you provided still lists:

{437AC169-780B-47A9-86F6-14D43C8F596B} MySQL Installer 1.3.6.0

which indicates, that the package is still there. As long as this entry doesn't disappear, Salt won't report it as removed.

Once you're sure it is removed, make sure your package DB is refreshed on the Minion:

salt your-minion pkg.refresh_db

and then check again.

eliasp avatar Apr 09 '14 15:04 eliasp

Ok, looks like I was confused. I originally uninstalled it through the control panel instead of salt but just now doing it through salt and msiexec worked. Thanks for you help!

gtmacdonald avatar Apr 09 '14 17:04 gtmacdonald

If you uninstall it outside of Salt, the minion needs to run a pkg.refresh_db to get informed about these changes.

eliasp avatar Apr 10 '14 22:04 eliasp

That's good to know. Thanks!

gtmacdonald avatar Apr 10 '14 22:04 gtmacdonald