Commit Graph

7800 Commits

Author SHA1 Message Date
David Nalley 5cd1cb17d3 fixin a typo in a logging message 2011-11-29 17:09:46 -05:00
Abhinandan Prateek 59a48ce59d bug 11910: no need to do full sync as first thing after connect 2011-11-29 11:35:11 +05:30
frank 9cade8e061 attach branch name to rpm name 2011-11-28 15:30:03 -08:00
frank e014bb724e make build number attach to release number 0 in rpm package name.
1. if --prerelease specified, the release number equals to
        0.buildnumber
2. if --prerelease omitted, the release number equals to
        1 or --release-version if --release-version specified
2011-11-28 15:29:53 -08:00
frank 3ca237c150 better help message of cloud-setup-database 2011-11-23 17:33:15 -08:00
frank 82db0eb371 add cleanup/recover procedures to cloud-setup-database 2011-11-23 17:14:20 -08:00
frank 97e97b6609 Refine cloud-setup-database script 2011-11-23 11:25:09 -08:00
Abhinandan Prateek 09e3e2e2ff bug 11910: full sync will only stop unknown VMs on agent 2011-11-23 17:18:51 +05:30
Alena Prokharchyk fd0dc5281a bug 12105: don't generate corresponding firewall rule for the pf/staticNat/lb rule in revoke state 2011-11-21 16:25:00 -08:00
frank dc4c25fdcc introduce cloud-grab-dependent-library-versions grabbing dependent libraries version of mgmt server 2011-11-21 14:30:55 -08:00
frank f5a2d123db Bug 12078 - pxe config file not being sent down (edit)
better debug message
2011-11-18 15:40:21 -08:00
frank 41799f021b Bug 12078 - pxe config file not being sent down (edit)
status 12078: resolved  fixed
2011-11-18 15:34:05 -08:00
Alena Prokharchyk d387e586ef bug 12067: set 'extractable' field default value to 0 as a part of 2.2.13 to 2.2.14 db upgrade
status 12067: resolved fixed
2011-11-18 13:35:07 -08:00
Abhinandan Prateek 6ced772ce8 bug 11910: avoid Starting to Running state changes during full sync, as the VM startup process does not like it 2011-11-17 14:30:25 +05:30
Sheng Yang 5ee092a1ad bug 11904: Fix regression caused by OpenJDK 1.6.0 security fix
It’s due to an security fix of OpenJDK 1.6.0 added by Redhat. Here is excerpt
of [RHSA-2011:1380-01] Critical: java-1.6.0-openjdk security update(
https://www.redhat.com/archives/rhsa-announce/2011-October/msg00011.html)

    A flaw was found in the way the SSL 3 and TLS 1.0 protocols used block
    ciphers in cipher-block chaining (CBC) mode. An attacker able to perform a
    chosen plain text attack against a connection mixing trusted and untrusted
    data could use this flaw to recover portions of the trusted data sent over
    the connection. (CVE-2011-3389)

    Note: This update mitigates the CVE-2011-3389 issue by splitting the first
    application data record byte to a separate SSL/TLS protocol record. This
    mitigation may cause compatibility issues with some SSL/TLS implementations
    and can be disabled using the jsse.enableCBCProtection boolean property.
    This can be done on the command line by appending the flag
    "-Djsse.enableCBCProtection=false" to the java command.

To our knowledge, there are two condition need to be met to trigger this bug:
1.    Using old keystore generated by mgmt. server 2.2.8, which is signed with
SHA1withDSA. Any version later than 2.2.8 would generate keystore signed with
SHA1withRSA. RSA one seems fine with us so far.
2.    Use OpenJDK >=1.6.0.

The reason is, due to the security fix above, the assumption that one packet
would contain only one SSL record is broken. The decrypted data maybe only
contained the first byte of original application data. Then result in buffer
underflow when mgmt server want to read more from it.

To workaround it, according to the message above, add
"-Djsse.enableCBCProtection=false" to tomcat6.conf JAVA_OPTS line would work.
Notice the parameter would only work with latest version of OpenJDK, so simply
add it to the all setup would not work.

This patch provided a fix for it.

status 11904: resolved fixed
2011-11-16 18:37:07 -08:00
Kelven Yang ad6d7ff9d2 bug 12039,12041: when taking snapshot for detached volume, keep the worker VM around until backup copy to SSVM is done
Reviewed-by: Frank
2011-11-16 18:05:06 -08:00
Alex Huang ee9eadef47 bug 12054: added details level to make it faster if so desired by the admin. Reviewed-by: Alena, Will 2011-11-16 17:32:56 -08:00
Alex Huang 013b14dffe print out the statement on closing for better debugging output 2011-11-16 16:24:02 -08:00
Kelven Yang fc1854681a bug 12039, 12041: forgot one more place. Reviewed-by: kelven 2011-11-16 11:26:12 -08:00
root 1db4e8b3f5 bug 11938: Remove thread.sleep() from HostCapacityChecker. cpu and memory capacities can be null for host in maintenance so check for that, wrap the host capacity checker thread with try and catch to make it more robust. Add more logging for entry and exit of thread.
status 11938: resolved fixed
reviewed-by: Abhi
2011-11-16 20:13:07 +05:30
Kelven Yang e790059a34 bug 12039, 12041: detach all disks before destroy worker VM to avoid accidentally delete the underlying disk along with the worker VM. Reviewed-by: Kelven 2011-11-15 19:05:53 -08:00
Alex Huang 67aa34f46d bug 12040: fixed the problem where if the connection is not retrievable, we cause a classcastexception
Reviewed-by: Anthony
2011-11-15 12:12:50 -08:00
keshav 58a09e00a7 Don't need to specify source NAT IP address and public VLAN tag in interface NAT mode. 2011-11-14 19:01:34 -08:00
frank 536a93d16a Bug 12007 - OVM - Addition of OVM host fails - NPE (edit)
fix a typo

reviewed-by: edison
2011-11-14 16:59:55 -08:00
Alena Prokharchyk f084445901 bug 11938: don't index usage tables when do upgrade from 2211 to 2212.
status 11938: resolved fixed
reviewed-by: Frank Zhang

This fix would cover following scenario:

* the customer is upgrading from 2.2.11 to 2.2.13.
* the incorrect indexes are being dropped as a part of 2.2.12 to 2.2.13 upgarde, but we still insert them as a part of 2.2.11 to 2.2.12, and it might lead to the db upgrade failure. The only one way to handle this case - remove them from 2.2.11 to 2.2.12 upgrade path
2011-11-14 16:00:28 -08:00
frank 7c231c98f6 Bug 12007 - OVM - Addition of OVM host fails - NPE (edit)
skip scanning stopped VMs on primary storage if it is not existing, because first time fullsync() called the
primary storage has not been mounted

status 12007: resolved fixed

reviewed-by: edison
2011-11-14 10:26:03 -08:00
Edison Su 04e5c842f8 bug 11991: don't duplicate templates into other secondary storages
status 11911: resolved fixed
Reviewed-by: anthony
2011-11-11 14:22:01 -08:00
Abhinandan Prateek 89d046a62b bug 11987: changing virtualmachineimpl to reoccuring listener
reviewed-by: nitin
2011-11-11 19:22:56 +05:30
kishan 601ce4ca62 bug 11889: Revert earlier commit. use sshkeypair instead of keypair in API response
status 11889: resolved fixed
reviewed-by: Nitin
2011-11-11 14:12:22 +05:30
kishan c15dbd561a bug 11961: Before creating template usage_storage records, check if entry already exists. In multiple secondary storage case, duplicate usage events will be ignored.
status 11961: resolved fixed
reviewed-by: Nitin
2011-11-11 13:44:20 +05:30
Abhinandan Prateek 4b074600eb bug 11979: if a VM is absent on the cluster, it is effectively in stopped state.
reviewed-by: kishan
2011-11-11 10:53:33 +05:30
Edison Su 7fe51e06b6 bug 11835: don't return error if it's delete firewall rules
status 11835: resolved fixed
Reviewed-by: frank
2011-11-10 17:58:37 -08:00
frank e3240664ab fix a typo
Host.Type.SecondaryStorageVM is the correct type of StartupSecondaryStorageCommand
2011-11-10 17:36:59 -08:00
frank 0821023aa5 Don't allow Agent send out StartupCommand if it can not get its local IP address,
otherwise mgmt server will get an incomplete StartupCommand
2011-11-10 17:34:44 -08:00
frank bb7293c9a5 Bug 11933 - Unable to add Primary Storage (OCFS2) to a OVM Cluster
Don't allow character beyond [A-Z0-9] in OCFS2 cluster name
it is not allowed by OCFS2 configure script

reviewed-by: edison
2011-11-10 17:06:46 -08:00
Edison Su e12368da5f bug 11981: upgrade snapshot version number from 2.1 to 2.2 if it's a root volume
status 11981: resolved fixed
Reviewed-by: Anthony
2011-11-10 16:21:23 -08:00
frank 888a982d9e Bug 11933 - Unable to add Primary Storage (OCFS2) to a OVM Cluster
Bug 11948 - Cannot add a new OVM host to an existing OVM cluster
Bug 11699 - OVM - add host previously used in other OVM cluster > host went to alert state> host cleanup procedure needed

status 11933: resolve fixed
status 11948: resolve fixed
status 11699: resolve fixed

replace ovs-agent ocfs2 functions with our implementation.
ovs-agent's implementation doesn't check error condition, it can only run if everything is correct.
we also add check for used host without clean up, clean up procedure will print out as error message

reviewed-by: edison
2011-11-10 14:53:26 -08:00
Kelven Yang 84e50db0ee bug 11973: Escape VM name to prevent from XSS attack. Reviewed-by: Alex huang 2011-11-10 12:01:36 -08:00
Kelven Yang f9bea27d0b bug 11940: apply disk controller selection only to ROOT disks
Reviewed-by: Annothy Xu
2011-11-10 10:55:07 -08:00
Abhinandan Prateek 02c97f90ce bug 11910: during full sync ignoring VMs which have been into starting state shortly
reviewed-by: kishan
2011-11-10 11:59:08 +05:30
frank 3cc37ed3fb refine the logic seraching ssvm when generate firewall configuration 2011-11-09 14:37:36 -08:00
Alena Prokharchyk 56e5255cdc bug 11573: made network wait timeout configurable
status 11573: resolved fixed
reviewed-by: Alex Huang
2011-11-09 13:13:49 -08:00
Edison Su 883058ed1a bug 11919: if volume is dettached, instance id is null
status 11919: resolved fixed
Reviewed-by: frank
2011-11-09 10:41:14 -08:00
Alena Prokharchyk b16777994f bug 11924: don't return ISO entries where removed != null
status 11924: resolved fixed
reviewed by: Will Chan
2011-11-09 09:39:31 -08:00
Naredula Janardhana Reddy 516ea0ee0f Merge branch '2.2.y' of ssh://git.cloud.com/var/lib/git/cloudstack-oss into 2.2.y 2011-11-09 16:37:03 +05:30
kishan 4a80506448 bug 11938: Removed unique constraint on usage_network_offering table.
status 11938: resolved fixed
reviewed-by: Abhi
2011-11-09 16:27:31 +05:30
Naredula Janardhana Reddy 1148ebfdcd bug 11590:
reviewed-by: Abhi

Summary of Changes:
 while adding a primary address to the domR interface, previous primaray addresses(ip) are removed and added as with 32-bit netmask.
   This is to avoid two same ip's with different netmask attached to the interface.
2011-11-09 16:24:42 +05:30
Abhinandan Prateek 884b9f3a35 bug 11880: host status is now in sync 2011-11-08 16:44:48 +05:30
kishan 6ad712d1c4 bug 11851: When Add VPN user fails, remove the user entry from db instead of leaving in Add state.
status 11851: resolved fixed
reviewed-by: Abhi
2011-11-08 15:53:32 +05:30
Alena Prokharchyk 657edb1a56 bug 11923: don't expose command name in the exception response when command is not available
status 11923: resolved fixed
reviewed-by: Will Chan
2011-11-07 18:00:11 -08:00