leolleeooleo commented on PR #5012:
URL: https://github.com/apache/cloudstack/pull/5012#issuecomment-1133563836

   I have same problem after I update to Rocky Linux 8.6
   I had tried to downgrade, but it is difficult to downgrade with some 
dependence issue.
   
   @xlmnxp , You can rebase #6253, #6399, and #6402 to tag 4.16.1.0 then 
replace jar file cloud-plugin-hypervisor-kvm-4.16.0.0.jar and 
cloud-agent-4.16.1.0.jar if you urgently need.
   
   My steps:
   Install requirement packages (on RockyLinux)
   ~~~
   $ sudo dnf install git java-11-openjdk-devel maven
   $ sudo alternatives --config javac
   $ export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-11.0.15.0.10-2.el8_6.x86_64/
   ~~~
   clone the repository
   ~~~
   $ git clone https://github.com/apache/cloudstack.git
   $ cd cloudstack
   $ git remote add shapeblue https://github.com/shapeblue/cloudstack.git
   $ git fetch shapeblue
   ~~~
   checkout #6399 and rebase to 4.16.1.0
   only pick #6253 and #6399, drop others commit (note that PR #6399 isn't 
merged yet)
   ~~~
   $ git checkout -b fix-iouring shapeblue/disableiouringbydefault
   $ git rebase -i 4.16.1.0
   :1,29s/^pick/drop/g
   :31,39s/^pick/drop/g
   
   drop bc70535ee5 Updating pom.xml version numbers for release 
4.16.2.0-SNAPSHOT
   drop c366511294 UI: Missing message on VM import for not found networks 
(#6055)
   drop 2820a36f86 Check the network access when deploying VM in Advanced 
Security Group. (#6050)
   drop 84f19d8f36 UI: update vm with userdata (#6051)
   drop e4d70d4214 UI: Fix Autogenview cleared resource (#6066)
   drop 6b913a76cf ui: Add user initials as avatar if no icon present (#6070)
   drop 7fbfd4c6ea UI: Fix navigation to domains (#6072)
   drop c2bcad8571 ui: Set icon to osdisplayname to avoid multiple api calls 
(#6075)
   drop 00c1bdb365 UI: Reload page on closing Bulk Action modal (#6077)
   drop 3a456f1b31 server: mark volume snapshots as Destroyed if it does not 
exist on primary and secondary storage when delete a volume (#6057)
   drop 067c1de080 Fix get upload params NPE (#6079)
   drop 6ff378f6a3 travis: run nosetests-2.7 (#6113)
   drop 75b54171ae Travis - fix test failures observed (#6119)
   drop 4be99fe971 api: Allow updating VM settings when custom contrained 
offering is used (#6136)
   drop f8b648b938 Fix migration of VM with volume on Ubuntu (#6116)
   drop fb43076f9e Fix linux native bridge for SUSE in cloudutils (#6134)
   drop f4b9ab034b UI: fix create l2 network offering with userdata (#6174)
   drop bcd1a3274a api: Fix reset configuration (#6168)
   drop 908f594f00 configDrive: Fix failure to delete (unstarted) VM (#6146)
   drop a69ab3b28f Ensure configdrive path is edited properly during live 
migration (#6173)
   drop ee27708ffb SAML: replace first number with random alphabet if request 
ID starts with a number (#6165)
   drop 66a6671e0b ui,refactor: fix missing label in update network form (#6181)
   drop 47454eca7d VR: add '-m <protocol>' for tcp or udp protocol (#6188)
   drop c61ea9f96d VR: Do not add iptables rules for the revoked ip addresses 
(#6189)
   drop e7071ec196 server: increment deviceid while importing vm data volumes 
(#6123)
   drop ee2ded8200 potential null pointer in condition; AYAI9l8k5Irk9_td-cXb 
(#6237)
   drop b6072fc826 Allow expunging a VM on a deleted host when using host cache 
and ConfigDrive userdata service (#6234)
   drop 19a7774cab VR: add rules for traffic between static nat and private 
gateway static routes (#6153)
   drop 91a5f0e285 server: honor global setting system.vm.default.hypervisor as 
first option when deploy VRs (#6160)
   pick 42a92dcdd3 Extract the IO_URING configuration into the agent.properties 
(#6253)
   drop fbf77978e1 Fix: Allow disabling the login attempts mechanism for 
disabling users (#6254)
   drop bbb4ffa593 UI: fix dedicate public ip range to domain (#6258)
   drop 365966dd0a UI: Fix custom unconstrained for a zone does not show CPU 
speed (#6285)
   drop b2338f7158 Updated reset configuration, to return the updated config 
value in the response (#6284)
   drop 5fa8fa5580 Fix upload volume format (#6297)
   drop efb1f2b719 UI: Fix templates page redirection after delete job is 
finished (#6345)
   drop 556f9dac0f ui: Network offerings not listed if listVPCs not available 
in the account Role (#6354)
   drop d373f973ba Update VM name, when the new name provided in 
updateVirtualMachine API in different case. (#6379)
   drop 006473ca19 Log exception on keystore build for custom certificate 
(#6394)
   pick f9aa91c642 [KVM] Disable IOURING by default on agents
   pick fad8a5752c Refactor
   pick 1d6d1b09fb Remove agent property for iouring
   pick c11cd1bf4e Restore property
   pick 261e275c38 Refactor suse check and enable on ubuntu by default
   pick 0e76ca64d7 Refactor irrespective of guest OS
   pick 9e0574683d Improvement
   pick b349e75614 Logs and new path
   pick a74a4a83df Refactor condition to enable iouring
   pick 09c1f44093 Improve condition
   pick a3ab1a33e4 Refactor property check
   pick 88b3666d8c Improvement
   pick 0c8a6aa03a Doc comment
   pick 3835e8b8cf Extend comment
   
   # Rebase cad9332082..3835e8b8cf onto 0c8a6aa03a (53 commands)
   
   :wq
   ~~~
   and also need to fix VNC password as #6402
   checkout #6402 and rebase to fix-iouring
   only pick #6402, drop others commit
   ~~~
   $ git checkout -b fix-vncpassword 363a2cff8231a31c3c9def329805910e43358b1d
   $ git rebase -i fix-iouring
   :1,39s/^pick/drop/g
   
   drop bc70535ee5 Updating pom.xml version numbers for release 
4.16.2.0-SNAPSHOT
   drop c366511294 UI: Missing message on VM import for not found networks 
(#6055)
   drop 2820a36f86 Check the network access when deploying VM in Advanced 
Security Group. (#6050)
   drop 84f19d8f36 UI: update vm with userdata (#6051)
   drop e4d70d4214 UI: Fix Autogenview cleared resource (#6066)
   drop 6b913a76cf ui: Add user initials as avatar if no icon present (#6070)
   drop 7fbfd4c6ea UI: Fix navigation to domains (#6072)
   drop c2bcad8571 ui: Set icon to osdisplayname to avoid multiple api calls 
(#6075)
   drop 00c1bdb365 UI: Reload page on closing Bulk Action modal (#6077)
   drop 3a456f1b31 server: mark volume snapshots as Destroyed if it does not 
exist on primary and secondary storage when delete a volume (#6057)
   drop 067c1de080 Fix get upload params NPE (#6079)
   drop 6ff378f6a3 travis: run nosetests-2.7 (#6113)
   drop 75b54171ae Travis - fix test failures observed (#6119)
   drop 4be99fe971 api: Allow updating VM settings when custom contrained 
offering is used (#6136)
   drop f8b648b938 Fix migration of VM with volume on Ubuntu (#6116)
   drop fb43076f9e Fix linux native bridge for SUSE in cloudutils (#6134)
   drop f4b9ab034b UI: fix create l2 network offering with userdata (#6174)
   drop bcd1a3274a api: Fix reset configuration (#6168)
   drop 908f594f00 configDrive: Fix failure to delete (unstarted) VM (#6146)
   drop a69ab3b28f Ensure configdrive path is edited properly during live 
migration (#6173)
   drop ee27708ffb SAML: replace first number with random alphabet if request 
ID starts with a number (#6165)
   drop 66a6671e0b ui,refactor: fix missing label in update network form (#6181)
   drop 47454eca7d VR: add '-m <protocol>' for tcp or udp protocol (#6188)
   drop c61ea9f96d VR: Do not add iptables rules for the revoked ip addresses 
(#6189)
   drop e7071ec196 server: increment deviceid while importing vm data volumes 
(#6123)
   drop ee2ded8200 potential null pointer in condition; AYAI9l8k5Irk9_td-cXb 
(#6237)
   drop b6072fc826 Allow expunging a VM on a deleted host when using host cache 
and ConfigDrive userdata service (#6234)
   drop 19a7774cab VR: add rules for traffic between static nat and private 
gateway static routes (#6153)
   drop 91a5f0e285 server: honor global setting system.vm.default.hypervisor as 
first option when deploy VRs (#6160)
   drop fbf77978e1 Fix: Allow disabling the login attempts mechanism for 
disabling users (#6254)
   drop bbb4ffa593 UI: fix dedicate public ip range to domain (#6258)
   drop 365966dd0a UI: Fix custom unconstrained for a zone does not show CPU 
speed (#6285)
   drop b2338f7158 Updated reset configuration, to return the updated config 
value in the response (#6284)
   drop 5fa8fa5580 Fix upload volume format (#6297)
   drop efb1f2b719 UI: Fix templates page redirection after delete job is 
finished (#6345)
   drop 556f9dac0f ui: Network offerings not listed if listVPCs not available 
in the account Role (#6354)
   drop d373f973ba Update VM name, when the new name provided in 
updateVirtualMachine API in different case. (#6379)
   drop 006473ca19 Log exception on keystore build for custom certificate 
(#6394)
   drop b62b5c96e8 Prevent NPE on reboot stopped VM and startVM output with 
null displayname (#6397)
   pick 363a2cff82 Backport: kvm: truncate vnc password to 8 chars (#6244) 
(#6402)
   
   # Rebase bab903af16..363a2cff82 onto 363a2cff82 (40 commands)
   
   :wq
   ~~~
   build jar files and copy to your agent
   ~~~
   $ mvn install
   $ scp agent/target/cloud-agent-4.16.1.0.jar leo@kvm-agent:
   $ scp 
plugins/hypervisors/kvm/target/cloud-plugin-hypervisor-kvm-4.16.1.0.jar 
leo@kvm-agent:
   ~~~
   You need to update CloudStack to 4.16.1.0 first
   Then you can replace those two jar file and restart agent
   Of course you can backup the original jar file if you want
   ~~~
   $ sudo mv /usr/share/cloudstack-agent/lib/cloud-agent-4.16.1.0.jar 
/usr/share/cloudstack-agent/lib/cloud-agent-4.16.1.0.jar.origin
   $ sudo mv 
/usr/share/cloudstack-agent/lib/cloud-plugin-hypervisor-kvm-4.16.1.0.jar 
/usr/share/cloudstack-agent/lib/cloud-plugin-hypervisor-kvm-4.16.1.0.jar.origin
   $ sudo cp ~/cloud-agent-4.16.1.0.jar /usr/share/cloudstack-agent/lib/
   $ sudo cp ~/cloud-plugin-hypervisor-kvm-4.16.1.0.jar 
/usr/share/cloudstack-agent/lib/
   $ sudo systemctl restart cloudstack-agent.service
   ~~~
   
   You can use my jar file if you don't mind
   
[CloudStack-4.16.1.0-agent_patch_for_rockylinux8.6.zip](https://github.com/apache/cloudstack/files/8747216/CloudStack-4.16.1.0-agent_patch_for_rockylinux8.6.zip)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to