cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-5949) Remove unused field vnc_password from user_vm_view
Date Wed, 03 Dec 2014 22:49:12 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-5949?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14233623#comment-14233623
] 

ASF subversion and git services commented on CLOUDSTACK-5949:
-------------------------------------------------------------

Commit ab16011874a923bd70252a0f26cfe4016eb07662 in cloudstack's branch refs/heads/4.5 from
[~minchen07]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=ab16011 ]

CLOUDSTACK-5949: remove unused vnc_password from user_vm_view view to avoid decryption bottleneck.


> Remove unused field vnc_password from user_vm_view
> --------------------------------------------------
>
>                 Key: CLOUDSTACK-5949
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5949
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Management Server
>    Affects Versions: 4.3.0
>            Reporter: Koushik Das
>            Assignee: Koushik Das
>            Priority: Critical
>             Fix For: 4.3.0
>
>
> vnc_password is an encrypted field. During any list VM query this field is decrypted
and then returned. In a scaled up environment if many simultaneous list VM queries are run
then this may result in blocked threads as shown below. A single instance of StandardPBEByteEncryptor
is used for encryption/decryption. Due to this all decrypt calls during list VM queries get
blocked as the decrypt method is thread safe (see http://www.jasypt.org/api/jasypt/1.8/org/jasypt/encryption/pbe/StandardPBEStringEncryptor.html)
> "catalina-exec-83" daemon prio=10 tid=0x00007eff300b1000 nid=0x6b9e waiting for monitor
entry [0x00007efee294a000]
> java.lang.Thread.State: BLOCKED (on object monitor)
> at org.jasypt.encryption.pbe.StandardPBEByteEncryptor.decrypt(StandardPBEByteEncryptor.java:962)
> waiting to lock <0x000000070416a398> (a javax.crypto.Cipher)
> at org.jasypt.encryption.pbe.StandardPBEStringEncryptor.decrypt(StandardPBEStringEncryptor.java:725)
> at com.cloud.utils.crypt.DBEncryptionUtil.decrypt(DBEncryptionUtil.java:65)
> at com.cloud.utils.db.GenericDaoBase.setField(GenericDaoBase.java:511)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message