Conversation
|
@blueorangutan package |
|
@nvazquez a [SF] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Codecov Report
@@ Coverage Diff @@
## main #7558 +/- ##
=========================================
Coverage 12.96% 12.96%
Complexity 8993 8993
=========================================
Files 2728 2728
Lines 256674 256674
Branches 40031 40031
=========================================
Hits 33269 33269
- Misses 219224 219225 +1
+ Partials 4181 4180 -1
... and 2 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 6143 |
shwstppr
left a comment
There was a problem hiding this comment.
@nvazquez this also fixes the issue,
diff --git a/engine/schema/src/main/java/com/cloud/vm/ConsoleSessionVO.java b/engine/schema/src/main/java/com/cloud/vm/ConsoleSessionVO.java
index 53e98226db..81a11241e4 100644
--- a/engine/schema/src/main/java/com/cloud/vm/ConsoleSessionVO.java
+++ b/engine/schema/src/main/java/com/cloud/vm/ConsoleSessionVO.java
@@ -27,6 +27,8 @@ import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
+import javax.persistence.Temporal;
+import javax.persistence.TemporalType;
@Entity
@Table(name = "console_session")
@@ -56,6 +58,7 @@ public class ConsoleSessionVO {
private long hostId;
@Column(name = "acquired")
+ @Temporal(value = TemporalType.TIMESTAMP)
private Date acquired;
@Column(name = "removed")
|
@blueorangutan test |
|
@rohityadavcloud a [SF] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
| try { | ||
| txn.start(); | ||
| PreparedStatement preparedStatement = txn.prepareAutoCloseStatement(ACQUIRE_CONSOLE_SESSION); | ||
| preparedStatement.setDate(1, new java.sql.Date(-1L)); | ||
| preparedStatement.setLong(2, consoleSessionId); | ||
| preparedStatement.executeUpdate(); | ||
| txn.commit(); | ||
| } catch (Exception e) { | ||
| txn.rollback(); | ||
| LOGGER.warn(String.format("Failed acquiring console session id = %s: %s", consoleSessionId, e.getMessage()), e); | ||
| } |
|
@blueorangutan package |
|
Thanks @shwstppr - I have refactored the logic to add the missing annotation |
|
@blueorangutan package |
|
@nvazquez a [SF] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 6151 |
|
[SF] Trillian test result (tid-6578)
|
Description
This PR fixes the VM console display on the main branch
Fixes: #7550
Before the fix:
After the fix: VM console displayed correctly
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
View VM console