microsoft / omi

Open Management Infrastructure
Other
371 stars 116 forks source link

omi-1.4.3-1 will hung up query when switch user to scxuser. #554

Closed jeaneli closed 6 years ago

jeaneli commented 6 years ago

Env: a24p64-cent6-01 10.150.103.19

  1. Install oms agent sh omsagent-1.4.3-174.universal.x64.sh --install --enable-opsmgr
  2. Check the OMI version is omi-1.4.1-0
  3. Run command with root account /opt/omi/bin/omicli iv root/mysql { MySQL_Server } UpdateCredentials { Port 3306 BindAddress 127.0.0.1 Username root Password xxxxx }
  4. Run command with scxuser account /opt/omi/bin/omicli iv root/mysql { MySQL_Server } UpdateCredentials { Port 3306 BindAddress 127.0.0.1 Username scxuser Password xxxx }
  5. Upgrade Omi to omi-1.4.3-1 rpm -U omi-1.4.3-1.ulinux.x64.rpm
  6. Run command with root account /opt/omi/bin/omicli iv root/mysql { MySQL_Server } UpdateCredentials { Port 3306 BindAddress 127.0.0.1 Username root Password xxxxx }
  7. Run command with scxuser account /opt/omi/bin/omicli iv root/mysql { MySQL_Server } UpdateCredentials { Port 3306 BindAddress 127.0.0.1 Username scxuser Password xxxx } Expect: command worked well under scxuser account. Actually: the command will hung at step 7
JumpingYang001 commented 6 years ago

Once revert preexec commit it will be fixed: https://github.com/Microsoft/omi/tree/jumping-revert-preexec

JumpingYang001 commented 6 years ago

Fixed in #555