Re: Error while running master

2013-11-21 Thread Wido den Hollander



On 11/20/2013 09:37 PM, Syed Ahmed wrote:

Is this change going in 4.3? Is so then the Alter table I guess should
be in schema-421to430.sql. I don't see a schema-430to440.sql though. How
deploydb read the files? Does it go through all the
schema files or does it pick the latest one?



It somehow got lost due to my own merging. I comitted it into 
421to430.sql now, but I think this should be in 430to440.sql, but that 
file doesn't exist yet.


The feature freeze for 4.3 is closed, right?

Wido



Thanks,
-Syed


On Wed 20 Nov 2013 03:24:37 PM EST, Wei ZHOU wrote:

Wido committed 1edaa36cc68e845a42339d5f267d49c82343aefb today.
try after "ALTER TABLE  disk_offering ADD COLUMN cache_mode varchar(20)"
I do not know which schema file should be inserted into,
schema-421to430.sql or schema-430to440.sql ?

2013/11/20 Syed Ahmed 


Hi All,

I am facing the following error when running the latest master. I have
done a clean compile and have dropped and created the db again.

[WARNING] Nested in
org.springframework.context.ApplicationContextException:
Failed to start bean 'cloudStackLifeCycle'; nested exception is
com.cloud.utils.exception.CloudRuntimeException: DB Exception on:
com.mysql.jdbc.JDBC4PreparedStatement@538a1556: SELECT disk_offering.id,
disk_offering.domain_id, disk_offering.unique_name, disk_offering.name,
disk_offering.display_text, disk_offering.disk_size, disk_offering.tags,
disk_offering.type, disk_offering.removed, disk_offering.created,
disk_offering.recreatable, disk_offering.use_local_storage,
disk_offering.system_use, disk_offering.customized, disk_offering.uuid,
disk_offering.customized_iops, disk_offering.min_iops,
disk_offering.max_iops, disk_offering.sort_key,
disk_offering.bytes_read_rate, disk_offering.bytes_write_rate,
disk_offering.iops_read_rate, disk_offering.iops_write_rate,
disk_offering.cache_mode, disk_offering.display_offering,
disk_offering.state, disk_offering.hv_ss_reserve, service_offering.cpu,
service_offering.speed, service_offering.ram_size,
service_offering.nw_rate, service_offering.mc_rate,
service_offering.ha_enabled, service_offering.limit_cpu_use,
service_offering.is_volatile, service_offering.host_tag,
service_offering.default_use, service_offering.vm_type,
service_offering.sort_key, service_offering.deployment_planner FROM
service_offering INNER JOIN disk_offering ON service_offering.id=disk_
offering.id  WHERE disk_offering.type='Service' AND
disk_offering.unique_name = _binary'Cloud.Com-Small Instance'  AND
disk_offering.system_use = 1 AND disk_offering.removed IS NULL :
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown
column
'disk_offering.cache_mode' in 'field list'


This is the definition of disk_offering from create-schema.sql

CREATE TABLE `cloud`.`disk_offering` (
   `id` bigint unsigned NOT NULL auto_increment,
   `domain_id` bigint unsigned,
   `name` varchar(255) NOT NULL,
   `uuid` varchar(40),
   `display_text` varchar(4096) NULL COMMENT 'Descrianaption text set by
the admin for display purpose only',
   `disk_size` bigint unsigned NOT NULL COMMENT 'disk space in byte',
   `type` varchar(32) COMMENT 'inheritted by who?',
   `tags` varchar(4096) COMMENT 'comma separated tags about the
disk_offering',
   `recreatable` tinyint(1) unsigned NOT NULL DEFAULT 0 COMMENT 'The
root
disk is always recreatable',
   `use_local_storage` tinyint(1) unsigned NOT NULL DEFAULT 0 COMMENT
'Indicates whether local storage pools should be used',
   `unique_name` varchar(32) UNIQUE COMMENT 'unique name',
   `system_use` tinyint(1) unsigned NOT NULL DEFAULT 0 COMMENT 'is this
offering for system used only',
   `customized` tinyint(1) unsigned NOT NULL DEFAULT 0 COMMENT '0
implies
not customized by default',
   `removed` datetime COMMENT 'date removed',
   `created` datetime COMMENT 'date the disk offering was created',
   `sort_key` int(32) NOT NULL default 0 COMMENT 'sort key used for
customising sort method',
   PRIMARY KEY  (`id`),
   INDEX `i_disk_offering__removed`(`removed`),
   CONSTRAINT `uc_disk_offering__uuid` UNIQUE (`uuid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;


And this is in my DB

mysql> describe disk_offering;
+---+-+--+-+
-++
| Field | Type| Null | Key | Default | Extra
|
+---+-+--+-+
-++
| id| bigint(20) unsigned | NO   | PRI | NULL|
auto_increment |
| domain_id | bigint(20) unsigned | YES  | | NULL|
|
| name  | varchar(255)| NO   | | NULL|
|
| uuid  | varchar(40) | YES  | UNI | NULL|
|
| display_text  | varchar(4096)   | YES  | | NULL|
|
| disk_size | bigint(20) unsigned | NO   | | NULL|
|
| type  | varchar(32) | YES  | | NULL|
|
| tags  | varchar(4096)   | 

Re: [Review Request]ASF4.2 to4.2.1 upgarde steps using source builds

2013-11-21 Thread Abhinandan Prateek
Thanks Manasa for trying out the upgrades.

Radhika,
   We had a hackathon on RN yesterday here at Collab.
Several changes have been made, can you build those and email so that
these can be reviewed by community ?

-abhi

On 20/11/13 3:31 pm, "Manasa Veloori (3P)" 
wrote:

>
>Steps to upgrade ASF 4.2 to 4.2.1 using source builds:
>
>
>1. Deploy ASF4.2.0 using the procedure given at
>https://cwiki.apache.org/confluence/display/CLOUDSTACK/Release+test+proced
>ure
>Use the following links to download the source
>
>
> wget --no-check-certificate
>https://dist.apache.org/repos/dist/release/cloudstack/KEYS
> wget --no-check-certificate
>http://www.apache.org/dyn/closer.cgi/cloudstack/releases/4.2.0/apache-clou
>dstack-4.2.0-src.tar.bz2
>wget --no-check-certificate
>http://www.apache.org/dyn/closer.cgi/cloudstack/releases/4.2.0/apache-clou
>dstack-4.2.0-src.tar.bz2.asc
> wget --no-check-certificate
>http://www.apache.org/dyn/closer.cgi/cloudstack/releases/4.2.0/apache-clou
>dstack-4.2.0-src.tar.bz2.md5
> wget --no-check-certificate
>http://www.apache.org/dyn/closer.cgi/cloudstack/releases/4.2.0/apache-clou
>dstack-4.2.0-src.tar.bz2.sha
>
>2.  Stop the Managament server and take the db dump.
>
>3.  Now download the source for 4.2.1 from below location:
>wget --no-check-certificate
>https://dist.apache.org/repos/dist/release/cloudstack/KEYS
>wget --no-check-certificate
>https://dist.apache.org/repos/dist/dev/cloudstack/4.2.1/apache-cloudstack-
>4.2.1-src.tar.bz2
>wget --no-check-certificate
>https://dist.apache.org/repos/dist/dev/cloudstack/4.2.1/apache-cloudstack-
>4.2.1-src.tar.bz2.asc
>   wget --no-check-certificate
>https://dist.apache.org/repos/dist/dev/cloudstack/4.2.1/apache-cloudstack-
>4.2.1-src.tar.bz2.md5
>wget --no-check-certificate
>https://dist.apache.org/repos/dist/dev/cloudstack/4.2.1/apache-cloudstack-
>4.2.1-src.tar.bz2.sha
>
>
>4.  gpg --import KEYS
>
>5.  Verify signatures and hash files:
> gpg --verify apache-cloudstack-4.2.1-src.tar.bz2.asc
>
>   This command should return "Good Signature".
>
>6.  gpg --print-md MD5 apache-cloudstack-4.2.1-src.tar.bz2 | diff -
>apache-cloudstack-4.2.1-src.tar.bz2.md5
>gpg --print-md SHA512 apache-cloudstack-4.2.1-src.tar.bz2 |
>diff - apache-cloudstack-4.1.0-src.tar.bz2.sha
>
>   Each of these commands should return no output. If
>there is any output from them, then there is a difference between the
>hash you generated   locally and the hash that has been
>pulled from the server.
>
>7.  Extract the source code and verify the contents:
> Get the commit hash from the VOTE email (ex:
>4cd60f3d1683a3445c3248f48ae064fb573db2a1). The value will change between
>releases.
>   Create two new temporary directories:
> mkdir /tmp/cloudstack/tree
>
>
>
>
>8.  Checkout to the 4.2.1 git branch
>
>
>git archive --format=tar --prefix=/tmp/cloudstack/tree/  |
>tar Pxf -
>
>
>9.  Unpack the release artifact:
>   cd /tmp/cloudstack
>   tar xvfj apache-cloudstack-4.2.1-src.tar.bz2
>
>
>10.   Compare the contents of the release artifact with the contents
>pulled from the repo:
>diff -r /tmp/cloudstack/apache-cloudstack-4.2.1-src
>/tmp/cloudstack/tree
>
>Nothing should be different.
>
>11.   Verify the Code's License Headers
>  cd /tmp/cloudstack/apache-cloudstack-4.2.1-src
>  mvn --projects='org.apache.cloudstack:cloudstack'
>org.apache.rat:apache-rat-plugin:0.8:check
>
>The build should FAIL if there are any non-compliant files that are not
>specifically excluded from the ASF license header requirement. You can
>optionally review the target/rat.txt file after the run completes. If the
>build passes, RAT is saying that we are compliant and this test passes.
>
>12.   Compile and upgrade Management Server
>mvn -P developer,systemvm clean install (or) mvn -P
>developer,systemvm clean install -Dnonoss
>   mvn -pl :cloud-client-ui jetty:run
>
>
>13.Check the database whether the db is upgraded to 4.2.1
>
>
>Thanks,
>Manasa
>



Jenkins build is back to normal : build-master-noredist #1812

2013-11-21 Thread jenkins
See 



Jenkins build is back to normal : build-master #29

2013-11-21 Thread jenkins
See 



Re: Review Request 13938: StringUtils csv methods simplified

2013-11-21 Thread Amogh Vasekar


> On Oct. 4, 2013, 5:24 p.m., Darren Shepherd wrote:
> > utils/src/com/cloud/utils/StringUtils.java, line 79
> > 
> >
> > This is not actually correct, the previous code would do a trim() and 
> > the new code also can introduce a NPE.  So check for null and return empty 
> > list, also the following snippet deals well with white space
> > 
> > tags.trim().split("\\s*,\\s*")

Reminder - 

Hi,
This request has been pending for long. Please take the time to address the 
comments raised. Thanks!


- Amogh


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/13938/#review26676
---


On Sept. 3, 2013, 7:22 a.m., Laszlo Hornyak wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/13938/
> ---
> 
> (Updated Sept. 3, 2013, 7:22 a.m.)
> 
> 
> Review request for cloudstack and Prachi Damle.
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> - longer method bodies replaced with oneliners
> - tests added to ensure compatibility
> 
> 
> Diffs
> -
> 
>   utils/src/com/cloud/utils/StringUtils.java 948c0ac 
>   utils/test/com/cloud/utils/StringUtilsTest.java ae37c24 
> 
> Diff: https://reviews.apache.org/r/13938/diff/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Laszlo Hornyak
> 
>



Re: Review Request 11981: Adding base support for NVP security groups to the NVP API

2013-11-21 Thread Amogh Vasekar


> On June 20, 2013, 6:40 a.m., Prasanna Santhanam wrote:
> > Minor nitpick : our code conventions recommend the method naming to not use 
> > underscore. so it's lowerCaseAndNoUnderscores()
> > 
> > http://cloudstack.apache.org/develop/coding-conventions.html
> 
> Animesh Chaturvedi wrote:
> Hugo can you review this patch
> 
> Chiradeep Vittal wrote:
> Agree with Prasanna's comment.

Reminder - 

Hi,
This request has been pending for long. Please take the time to address the 
comments raised. Thanks!


- Amogh


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/11981/#review22157
---


On June 19, 2013, 9:28 p.m., Adrian Steer wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/11981/
> ---
> 
> (Updated June 19, 2013, 9:28 p.m.)
> 
> 
> Review request for cloudstack and Hugo Trippaers.
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> This is initial version of API implementation of security groups within the 
> NVP API
> 
> 
> Diffs
> -
> 
>   
> plugins/network-elements/nicira-nvp/src/com/cloud/network/nicira/LogicalSwitchPort.java
>  c571458 
>   
> plugins/network-elements/nicira-nvp/src/com/cloud/network/nicira/NiciraAddressPairs.java
>  PRE-CREATION 
>   
> plugins/network-elements/nicira-nvp/src/com/cloud/network/nicira/NiciraLogicalPortRule.java
>  PRE-CREATION 
>   
> plugins/network-elements/nicira-nvp/src/com/cloud/network/nicira/NiciraNvpApi.java
>  12fa6c0 
>   
> plugins/network-elements/nicira-nvp/src/com/cloud/network/nicira/NiciraSecurityProfile.java
>  PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/11981/diff/
> 
> 
> Testing
> ---
> 
> Compile testing
> 
> 
> Thanks,
> 
> Adrian Steer
> 
>



Re: Review Request 13238: JIRA-3701 : VM instantiation : Sending network information to a new VM instance

2013-11-21 Thread Amogh Vasekar


> On Aug. 2, 2013, 12:17 p.m., Jenkins Cloudstack.org wrote:
> > Review 13238 failed the build test : FAILURE
> > The url of build cloudstack-master-with-patch #108 is : 
> > http://jenkins.cloudstack.org/job/cloudstack-master-with-patch/108/

Reminder - 

Hi,
This request has been pending for long. Please take the time to address the 
comments raised. Thanks!


- Amogh


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/13238/#review24526
---


On Oct. 1, 2013, 1:46 p.m., Nicolas FOATA wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/13238/
> ---
> 
> (Updated Oct. 1, 2013, 1:46 p.m.)
> 
> 
> Review request for cloudstack and Chiradeep Vittal.
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> Abstract/suggestion:
> While a VM is instantiated, CloudStack could also send the following 
> information if need be :
> - the instance name (CS uuid)
> - the display name
> - VM tags
> - network information (IPv4, IPv6, netmask, routing, gateway, mac address, 
> etc.)
> just if we activate some global settings such as :
> - vm.instance.boot.network.required (true/false)
> - vm.instance.boot.vmname (true/false)
> - vm.instance.boot.uuid (true/false)
> - vm.instance.boot.tags (true/false) 
>  
> Applications:
> - A VM could discover its network and dialog with physical and virtual 
> machines, etc.
> - A VM do not need a virtual router
> - According of this type of information (tags, names, …) , management servers 
> could be able to configure and deploy correctly  VMs.
> 
> 
> Diffs
> -
> 
>   
> plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java
>  7173f0b 
>   
> plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServer56FP1Resource.java
>  11a7b42 
>   server/src/com/cloud/configuration/Config.java c815c77 
>   server/src/com/cloud/vm/VirtualMachineManagerImpl.java 1fb118f 
> 
> Diff: https://reviews.apache.org/r/13238/diff/
> 
> 
> Testing
> ---
> 
> Set global settings : instanciantion of VMs : checking if extra parameters 
> are corrected and well send (even in base64URLSafe + / => - _)
> 
> 
> Thanks,
> 
> Nicolas FOATA
> 
>



Re: Review Request 12679: CLOUDSTACK-904: Changed multiple vcpus to one vcpu with multiple sockets

2013-11-21 Thread Amogh Vasekar


> On July 17, 2013, 4:43 p.m., Wido den Hollander wrote:
> > Hmm, I'm not sure about this one.
> > 
> > In the UI we indeed mention the amount of cores, however, the API parameter 
> > is "cpunumber".
> > 
> > So I get the reasoning, but we would be changing a lot here. I don't know 
> > if this changes anything by the way Qemu spreads out threads over the 
> > hypervisor's cores?
> 
> Rene Diepstraten wrote:
> Perhaps it's best if it's decided that a complete review of the cpu cores 
> model is needed.
> The API should in my opinion accept both cpu sockets and cpu cores as 
> parameters. It should for example be possible to create a vm with 2 sockets 
> and 16 cores.
> Qemu/KVM does support this for quite some time, as do for example Red Hat 
> Enterprise Virtualization and Proxmox VE, which both use KVM .
>
> 
> Animesh Chaturvedi wrote:
> May be this should be brought to mailing list as a DISCUSS topic?

Reminder - 

Hi,
This request has been pending for long. Please take the time to address the 
comments raised. Thanks!


- Amogh


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/12679/#review23290
---


On July 18, 2013, 4:06 p.m., Rene Diepstraten wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/12679/
> ---
> 
> (Updated July 18, 2013, 4:06 p.m.)
> 
> 
> Review request for cloudstack and Wido den Hollander.
> 
> 
> Bugs: CLOUDSTACK-904
> https://issues.apache.org/jira/browse/CLOUDSTACK-904
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> Cloudstack defines a vm with multiple CPUs instead of one CPU with multiple 
> cores. 
> For Windows as well as RHEL guests, the license is based on the amount of CPU 
> sockets.
> The definition of VCPUs should therefore translate to the amount of cores, 
> not CPUs.
> 
> 
> Diffs
> -
> 
>   
> plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtVMDef.java
>  5120870 
> 
> Diff: https://reviews.apache.org/r/12679/diff/
> 
> 
> Testing
> ---
> 
> Only tested the output of the append rule.
> 
> 
> Thanks,
> 
> Rene Diepstraten
> 
>



Re: Review Request 12660: Replaced multiple grep/awk/head commands by one awk

2013-11-21 Thread Amogh Vasekar


> On July 26, 2013, 10:24 p.m., Jenkins Cloudstack.org wrote:
> > Review 12660 failed the build test : FAILURE
> > The url of build cloudstack-master-with-patch #55 is : 
> > http://jenkins.cloudstack.org/job/cloudstack-master-with-patch/55/
> 
> Animesh Chaturvedi wrote:
> Patch needs to br updated, fails the build

Reminder - 

Hi,
This request has been pending for long. Please take the time to address the 
comments raised. Thanks!


- Amogh


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/12660/#review23982
---


On July 18, 2013, 3:57 p.m., Rene Diepstraten wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/12660/
> ---
> 
> (Updated July 18, 2013, 3:57 p.m.)
> 
> 
> Review request for cloudstack and Wido den Hollander.
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> Replaced multiple grep/awk/head commands by one awk.
> 
> 
> Diffs
> -
> 
>   scripts/vm/network/security_group.py c1c87da 
> 
> Diff: https://reviews.apache.org/r/12660/diff/
> 
> 
> Testing
> ---
> 
> Tested output. Not able to test using cloudstack function execute() or real 
> ebtables output.
> 
> 
> Thanks,
> 
> Rene Diepstraten
> 
>



Re: Review Request 13072: Print agent host name in logging of agent commands

2013-11-21 Thread Amogh Vasekar


> On Aug. 14, 2013, 5:31 p.m., Marcus Sorensen wrote:
> > Any comments?

Reminder - 
Hi,
This review has been pending for long. Request the reviewer to provide comments.
Thanks


- Amogh


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/13072/#review25153
---


On Aug. 6, 2013, 10:32 p.m., Marcus Sorensen wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/13072/
> ---
> 
> (Updated Aug. 6, 2013, 10:32 p.m.)
> 
> 
> Review request for cloudstack.
> 
> 
> Bugs: CLOUDSTACK-3872
> https://issues.apache.org/jira/browse/CLOUDSTACK-3872
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> Print agent name when logging Commands sent to VM hosts. See bug description. 
>  I'm not super familiar with this code, so I'd like someone to look over it 
> and verify it's the right thing.
> 
> 
> Diffs
> -
> 
>   core/src/com/cloud/agent/transport/Request.java b0fa4cc 
>   server/src/com/cloud/agent/manager/AgentAttache.java 1785bcf 
>   server/src/com/cloud/agent/manager/AgentManagerImpl.java b157838 
>   server/src/com/cloud/agent/manager/ClusteredAgentAttache.java 058a904 
>   server/src/com/cloud/agent/manager/ClusteredAgentManagerImpl.java 4fdb3c6 
>   server/src/com/cloud/agent/manager/ClusteredDirectAgentAttache.java 9012433 
>   server/src/com/cloud/agent/manager/ConnectedAgentAttache.java c98307b 
>   server/src/com/cloud/agent/manager/DirectAgentAttache.java 9b7d69f 
>   server/src/com/cloud/agent/manager/DummyAttache.java 14286d2 
> 
> Diff: https://reviews.apache.org/r/13072/diff/
> 
> 
> Testing
> ---
> 
> Tested on KVM zone, need help testing others.
> 
> 
> Thanks,
> 
> Marcus Sorensen
> 
>



Re: Review Request 14023: NetworkManager Exception Fix Due to call to getDhcpServiceProvider()

2013-11-21 Thread Amogh Vasekar


> On Sept. 19, 2013, 6:42 a.m., Murali Reddy wrote:
> > Could you please rebase to master and submit the patch, fix need to go into 
> > NetworkOrchestrator.

Reminder - 

Hi,
This request has been pending for long. Please take the time to address the 
comments raised. Thanks!


- Amogh


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/14023/#review26265
---


On Sept. 6, 2013, 10:26 p.m., Soheil Eizadi wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/14023/
> ---
> 
> (Updated Sept. 6, 2013, 10:26 p.m.)
> 
> 
> Review request for cloudstack.
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> I ran the master branch with my NetworkElement integrated which provides DHCP 
> service. In my use case I was able to create a VM but when I deleted it there 
> was an exception in the NetworkManager when it called:
> 
> isDhcpAccrossMultipleSubnetsSupported() >> getDhcpServiceProvider()
> 
> 
> My DHCP Provider is a NetworkElement but does not implement the 
> DhcpServiceProvider interface.
> 
> 
>public DhcpServiceProvider getDhcpServiceProvider(Network network) {
> 
> String DhcpProvider = 
> _ntwkSrvcDao.getProviderForServiceInNetwork(network.getId(), Service.Dhcp);
> 
> 
> if (DhcpProvider == null) {
> 
> s_logger.debug("Network " + network + " doesn't support service " 
> + Service.Dhcp.getName());
> 
> return null;
> 
> }
> 
> 
> return 
> (DhcpServiceProvider)_networkModel.getElementImplementingProvider(DhcpProvider);
> 
> 
> }
> 
> 
> There is a check in the NetworkManager in the Prepare stage but a similar 
> check is missing in Release stage.
> 
> 
> Diffs
> -
> 
>   server/src/com/cloud/network/NetworkManagerImpl.java ae27554 
> 
> Diff: https://reviews.apache.org/r/14023/diff/
> 
> 
> Testing
> ---
> 
> I verified in my environment where due to VM expunge failing to 
> NetworkManager exception the system would retry on a timer. After the fix the 
> VM was removed from the system after the first retry.
> 
> 
> Thanks,
> 
> Soheil Eizadi
> 
>



Re: devcloud2

2013-11-21 Thread Rohit Yadav
Hello!

I'm not sure what the issue is, probably you want to know about the
behaviour.

DevCloud2 requires minimum of 1G RAM but then mgmt server should not be run
inside it. The defaults should work out of the box for any host with AMD-v
or Intel-VT enabled processor. Another thing is the memory you're seeing in
DevCloud2 is the memory consumed by dom0 since it's actually Xen running on
top of VBox. The dom0 for security and memory limits purposes was been
limited to use only upto 500M max (see /etc/default/grub [1]) and rest is
used by VMs etc.

Hope this helps to understand the behaviour.

[1] http://bhaisaab.org/logs/devcloud

Cheers,
bhaisaab



On Wed, Nov 20, 2013 at 9:24 AM, Yichi Lu  wrote:

> my host is macbook pro. from top:
> PIDCOMMAND  %CPU  TIME #TH#WQ  #PORT #MREG RPRVT  RSHRD
>  RSIZE  VPRVT  VSIZE  PGRP  PPID  STATE
> 3756   VirtualBoxVM 6.0 00:32.16 23/1   1   153- 1372-
> 1969M-   36M2009M- 2091M- 4610M- 3756  12104 running
>
> So resident memory size is close to 2048 MB, total memory size of 4610 MB
> includes VBox memory usage.
>
> from guest vm /proc/meminfo:
> MemTotal:435252 kB
>
> Even if I increase the base memory size in VBox to 4096 MB, the total
> memory in /proc/meminfo is still about 435252 kB.
>
>
> On Tue, Nov 19, 2013 at 5:29 PM, Yichi Lu  wrote:
>
> > I try to install devcloud2, and try to follow this pape:
> > https://cwiki.apache.org/confluence/display/CLOUDSTACK/DevCloud.
> > Well, there is no error with installation. But now /proc/meminfo only
> > shows MemTotal: 435252 KB. Am I supposed to have 2048 MB total memory?
> This
> > is what the devcloud2 image tells me. Did I do anything wrong? Please
> help.
> >
> > Thanks.
> >
> > Yichi
> >
>


RE: Build failed in Jenkins: build-master #28

2013-11-21 Thread Alex Huang
I should have fixed this already.  

--Alex

> -Original Message-
> From: jenk...@cloudstack.org [mailto:jenk...@cloudstack.org]
> Sent: Thursday, November 21, 2013 8:17 AM
> To: dev@cloudstack.apache.org; n...@cloudstack.org; Alex Huang
> Subject: Build failed in Jenkins: build-master #28
> 
> See 
> 
> Changes:
> 
> [alex.huang] Reformat all source code.  Added checkstyle to check the
> source code
> 
> [alex.huang] Brought in Hugo's checkstyle
> 
> [alex.huang] Removed trailing spaces
> 
> [alex.huang] Replace all tabs, particularly the ones in the comments
> 
> [alex.huang] Removed trailing spaces
> 
> [alex.huang] Formatted again after all the tab expansions and eol removals
> 
> [alex.huang] Reformatted all of the code.
> 
> [alex.huang] Broke up some long strings
> 
> --
> [...truncated 1236 lines...]
> [ERROR]  master/ws/engine/orchestration/src/com/cloud/vm/VirtualMachineManage
> rImpl.java>:[3797,4] illegal start of expression [ERROR]
>  master/ws/engine/orchestration/src/com/cloud/vm/VirtualMachineManage
> rImpl.java>:[3797,6] illegal start of expression [ERROR]
>  master/ws/engine/orchestration/src/com/cloud/vm/VirtualMachineManage
> rImpl.java>:[3798,8] illegal start of expression [ERROR]
>  master/ws/engine/orchestration/src/com/cloud/vm/VirtualMachineManage
> rImpl.java>:[3798,15] not a statement [ERROR]
>  master/ws/engine/orchestration/src/com/cloud/vm/VirtualMachineManage
> rImpl.java>:[3800,0] illegal start of expression [ERROR]
>  master/ws/engine/orchestration/src/com/cloud/vm/VirtualMachineManage
> rImpl.java>:[3800,3] illegal start of expression [ERROR]
>  master/ws/engine/orchestration/src/com/cloud/vm/VirtualMachineManage
> rImpl.java>:[3800,6] illegal start of expression [ERROR]
>  master/ws/engine/orchestration/src/com/cloud/vm/VirtualMachineManage
> rImpl.java>:[3800,16] ';' expected [INFO] 42 errors [INFO] 
> ---
> --
> [INFO] 
> 
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Apache CloudStack . SUCCESS [26.095s] 
> [INFO]
> Apache CloudStack Maven Conventions Parent  SUCCESS [0.475s] [INFO]
> Apache CloudStack Framework - Managed Context . SUCCESS [18.889s]
> [INFO] Apache CloudStack Utils ... SUCCESS [30.452s] 
> [INFO]
> Apache CloudStack Framework ... SUCCESS [0.488s] [INFO]
> Apache CloudStack Framework - Event Notification .. SUCCESS [20.404s]
> [INFO] Apache CloudStack Framework - Configuration ... SUCCESS [13.396s]
> [INFO] Apache CloudStack API . SUCCESS [36.668s] 
> [INFO]
> Apache CloudStack Framework - REST  SUCCESS [9.604s] [INFO]
> Apache CloudStack Framework - IPC . SUCCESS [24.763s] [INFO]
> Apache CloudStack Cloud Engine  SUCCESS [0.509s] [INFO]
> Apache CloudStack Cloud Engine API  SUCCESS [19.648s] [INFO]
> Apache CloudStack Core  SUCCESS [27.889s] [INFO]
> Apache CloudStack Agents .. SUCCESS [22.929s] [INFO]
> Apache CloudStack Framework - Clustering .. SUCCESS [15.437s] [INFO]
> Apache CloudStack Framework - Jobs  SUCCESS [13.950s] [INFO]
> Apache CloudStack Cloud Engine Schema Component ... SUCCESS [36.257s]
> [INFO] Apache CloudStack Framework - Event Notification .. SUCCESS [8.444s]
> [INFO] Apache CloudStack Cloud Engine Internal Components API  SUCCESS
> [12.983s] [INFO] Apache CloudStack Server .. SUCCESS
> [2:23.647s] [INFO] Apache CloudStack Usage Server  SUCCESS
> [22.721s] [INFO] Apache XenSource XAPI . SUCCESS
> [14.525s] [INFO] Apache CloudStack Cloud Engine Orchestration Component
> FAILURE [7.842s] [INFO] Apache CloudStack Cloud Services ..
> SKIPPED [INFO] Apache CloudStack Secondary Storage Service ... SKIPPED
> [INFO] Apache CloudStack Engine Storage Component  SKIPPED [INFO]
> Apache CloudStack Engine Storage Volume Component . SKIPPED [INFO]
> Apache CloudStack Engine Storage Image Component .. SKIPPED [INFO]
> Apache CloudStack Engine Storage Data Motion Component  SKIPPED [INFO]
> Apache CloudStack Engine Storage Cache Component .. SKIPPED [INFO]
> Apache CloudStack Engine Storage Snapshot Component  SKIPPED [INFO]
> Apache CloudStack Cloud Engine API  SKIPPED [INFO] Apache
> CloudStack Cl

Re: Error while running master

2013-11-21 Thread Wei ZHOU
Thanks Hugo.

Wido, it failed when CS create the default offerings in
server/src/com/cloud/server/ConfigurationServerImpl.java, as "Column
'cache_mode' cannot be null" . Can you fix it?
Can cache_mode be null in database?


2013/11/21 Hugo Trippaers 

> Just bumped master to 4.4.0 and Wido did the upgrade scripts
>
> Cheers,
>
> Hugo
>
> On 21 nov. 2013, at 16:19, Alex Huang  wrote:
>
> > Here's a wiki page about it.
> >
> >
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/DB+Upgrade+in+CloudStack
> >
> > --Alex
> >
> >> -Original Message-
> >> From: Syed Ahmed [mailto:sah...@cloudops.com]
> >> Sent: Wednesday, November 20, 2013 12:37 PM
> >> To: dev@cloudstack.apache.org
> >> Cc: Wei ZHOU
> >> Subject: Re: Error while running master
> >>
> >> Is this change going in 4.3? Is so then the Alter table I guess should
> be in
> >> schema-421to430.sql. I don't see a schema-430to440.sql though.
> >> How deploydb read the files? Does it go through all the schema files or
> does
> >> it pick the latest one?
> >>
> >>
> >> Thanks,
> >> -Syed
> >>
> >>
> >> On Wed 20 Nov 2013 03:24:37 PM EST, Wei ZHOU wrote:
> >>> Wido committed 1edaa36cc68e845a42339d5f267d49c82343aefb today.
> >>> try after "ALTER TABLE  disk_offering ADD COLUMN cache_mode
> >> varchar(20)"
> >>> I do not know which schema file should be inserted into,
> >>> schema-421to430.sql or schema-430to440.sql ?
> >>>
> >>> 2013/11/20 Syed Ahmed 
> >>>
>  Hi All,
> 
>  I am facing the following error when running the latest master. I have
>  done a clean compile and have dropped and created the db again.
> 
>  [WARNING] Nested in
> >> org.springframework.context.ApplicationContextException:
>  Failed to start bean 'cloudStackLifeCycle'; nested exception is
>  com.cloud.utils.exception.CloudRuntimeException: DB Exception on:
>  com.mysql.jdbc.JDBC4PreparedStatement@538a1556: SELECT
> >> disk_offering.id,
>  disk_offering.domain_id, disk_offering.unique_name,
> >> disk_offering.name,
>  disk_offering.display_text, disk_offering.disk_size,
> disk_offering.tags,
>  disk_offering.type, disk_offering.removed, disk_offering.created,
>  disk_offering.recreatable, disk_offering.use_local_storage,
>  disk_offering.system_use, disk_offering.customized,
> disk_offering.uuid,
>  disk_offering.customized_iops, disk_offering.min_iops,
>  disk_offering.max_iops, disk_offering.sort_key,
>  disk_offering.bytes_read_rate, disk_offering.bytes_write_rate,
>  disk_offering.iops_read_rate, disk_offering.iops_write_rate,
>  disk_offering.cache_mode, disk_offering.display_offering,
>  disk_offering.state, disk_offering.hv_ss_reserve,
> service_offering.cpu,
>  service_offering.speed, service_offering.ram_size,
>  service_offering.nw_rate, service_offering.mc_rate,
>  service_offering.ha_enabled, service_offering.limit_cpu_use,
>  service_offering.is_volatile, service_offering.host_tag,
>  service_offering.default_use, service_offering.vm_type,
>  service_offering.sort_key, service_offering.deployment_planner FROM
>  service_offering INNER JOIN disk_offering ON service_offering.id
> =disk_
>  offering.id  WHERE disk_offering.type='Service' AND
>  disk_offering.unique_name = _binary'Cloud.Com-Small Instance'  AND
>  disk_offering.system_use = 1 AND disk_offering.removed IS NULL :
>  com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown
> >> column
>  'disk_offering.cache_mode' in 'field list'
> 
> 
>  This is the definition of disk_offering from create-schema.sql
> 
>  CREATE TABLE `cloud`.`disk_offering` (
>    `id` bigint unsigned NOT NULL auto_increment,
>    `domain_id` bigint unsigned,
>    `name` varchar(255) NOT NULL,
>    `uuid` varchar(40),
>    `display_text` varchar(4096) NULL COMMENT 'Descrianaption text set
> by
>  the admin for display purpose only',
>    `disk_size` bigint unsigned NOT NULL COMMENT 'disk space in byte',
>    `type` varchar(32) COMMENT 'inheritted by who?',
>    `tags` varchar(4096) COMMENT 'comma separated tags about the
>  disk_offering',
>    `recreatable` tinyint(1) unsigned NOT NULL DEFAULT 0 COMMENT 'The
> >> root
>  disk is always recreatable',
>    `use_local_storage` tinyint(1) unsigned NOT NULL DEFAULT 0 COMMENT
>  'Indicates whether local storage pools should be used',
>    `unique_name` varchar(32) UNIQUE COMMENT 'unique name',
>    `system_use` tinyint(1) unsigned NOT NULL DEFAULT 0 COMMENT 'is
> >> this
>  offering for system used only',
>    `customized` tinyint(1) unsigned NOT NULL DEFAULT 0 COMMENT '0
> >> implies
>  not customized by default',
>    `removed` datetime COMMENT 'date removed',
>    `created` datetime COMMENT 'date the disk offering was created',
>    `sort_key` int(32) NOT NULL default 0 COMMENT 'sort key used for
>  customising sort method',
>    PRIMARY 

Bump to 4.4.0

2013-11-21 Thread Hugo Trippaers
Hey all,

Together with Wido i bumped the version of master to 4.4.0 as we now have the 
4.3 branch for 4.3.0



Cheers from #CCCEU13 !

Hugo

Re: Request: Help designing a 'powered by' logo for CloudStack

2013-11-21 Thread Kirk Jantzer
Love it! Although, the 'powered by' looks a little crooked. If this was
intentional, I think it should be more crooked, because right now it's like
"is it crooked? i can't be sure" :-P


Regards,

Kirk Jantzer
http://about.me/kirkjantzer


On Wed, Nov 20, 2013 at 4:34 PM, Ian Duffy  wrote:

> Seemed like fun so gave it a go too:
> https://people.apache.org/~duffy/attemp2.png
>
>
> On 20 November 2013 16:17, Kirk Jantzer  wrote:
>
> > I'm not a graphic designer, and I don't have vector software, but here is
> > my very simple idea :-) http://i.imgur.com/WTNAIoG.png
> >
> >
> > Regards,
> >
> > Kirk Jantzer
> > http://about.me/kirkjantzer
> >
> >
> > On Fri, Nov 15, 2013 at 3:06 PM, Robyn Bergeron 
> > wrote:
> >
> > >
> > >
> > > - Original Message -
> > > > From: "David Nalley" 
> > > > To: market...@cloudstack.apache.org, dev@cloudstack.apache.org
> > > > Sent: Friday, November 15, 2013 10:56:15 AM
> > > > Subject: Request: Help designing a 'powered by' logo for CloudStack
> > > >
> > > > Hi folks:
> > > >
> > > > If you happen to have some graphical design talent (I have none) I
> > > > have a great opportunity for you :)
> > > >
> > > > CloudStack needs a 'powered by' logo that is easy to consume, and is
> > > > also attractive.
> > > >
> > > > A couple examples of powered by logos:
> > > >
> > > > http://tomcat.apache.org/images/tomcat-power.gif
> > > >
> > >
> >
> https://cwiki.apache.org/confluence/download/attachments/80899/mahout-logo-poweredby-100.png?version=1&modificationDate=1312880703000
> > > >
> > >
> >
> https://netbeans.org/images_www/screenshots/6.0/baseIDE_ant_powered_150px.png
> > > >
> > > > A couple of constraints:
> > > > * Please don't use the Apache feather. (we could, but lets not; it
> > > > will make life simpler)
> > > > * Please try and produce a vector format as source (this allows us to
> > > > scale/etc)
> > > > * Because this will become a trademark (which is vastly different
> that
> > > > copyright) - we will likely need some explicit email agreement around
> > > > trademarks rights for the image. (I promise, it isn't as scary as
> that
> > > > sentence makes it out to be.)
> > >
> > > I also lack design skills, but am always willing to throw out ideas :)
> > >
> > > Maybe incorporate the cloud monkey into something where he is turning a
> > > gear of some sort on a machine that has little clouds coming out of it?
> > I'm
> > > not quite sure how to turn that into "powered by" exactly... but just a
> > > thought. (The monkey is super cute.)
> > >
> > > -robyn
> > >
> > >
> > > >
> > > > Anyone interested?
> > > >
> > > > --David
> > > >
> > >
> >
>


Build failed in Jenkins: build-master #28

2013-11-21 Thread jenkins
See 

Changes:

[alex.huang] Reformat all source code.  Added checkstyle to check the source 
code

[alex.huang] Brought in Hugo's checkstyle

[alex.huang] Removed trailing spaces

[alex.huang] Replace all tabs, particularly the ones in the comments

[alex.huang] Removed trailing spaces

[alex.huang] Formatted again after all the tab expansions and eol removals

[alex.huang] Reformatted all of the code.

[alex.huang] Broke up some long strings

--
[...truncated 1236 lines...]
[ERROR] 
:[3797,4]
 illegal start of expression
[ERROR] 
:[3797,6]
 illegal start of expression
[ERROR] 
:[3798,8]
 illegal start of expression
[ERROR] 
:[3798,15]
 not a statement
[ERROR] 
:[3800,0]
 illegal start of expression
[ERROR] 
:[3800,3]
 illegal start of expression
[ERROR] 
:[3800,6]
 illegal start of expression
[ERROR] 
:[3800,16]
 ';' expected
[INFO] 42 errors 
[INFO] -
[INFO] 
[INFO] Reactor Summary:
[INFO] 
[INFO] Apache CloudStack . SUCCESS [26.095s]
[INFO] Apache CloudStack Maven Conventions Parent  SUCCESS [0.475s]
[INFO] Apache CloudStack Framework - Managed Context . SUCCESS [18.889s]
[INFO] Apache CloudStack Utils ... SUCCESS [30.452s]
[INFO] Apache CloudStack Framework ... SUCCESS [0.488s]
[INFO] Apache CloudStack Framework - Event Notification .. SUCCESS [20.404s]
[INFO] Apache CloudStack Framework - Configuration ... SUCCESS [13.396s]
[INFO] Apache CloudStack API . SUCCESS [36.668s]
[INFO] Apache CloudStack Framework - REST  SUCCESS [9.604s]
[INFO] Apache CloudStack Framework - IPC . SUCCESS [24.763s]
[INFO] Apache CloudStack Cloud Engine  SUCCESS [0.509s]
[INFO] Apache CloudStack Cloud Engine API  SUCCESS [19.648s]
[INFO] Apache CloudStack Core  SUCCESS [27.889s]
[INFO] Apache CloudStack Agents .. SUCCESS [22.929s]
[INFO] Apache CloudStack Framework - Clustering .. SUCCESS [15.437s]
[INFO] Apache CloudStack Framework - Jobs  SUCCESS [13.950s]
[INFO] Apache CloudStack Cloud Engine Schema Component ... SUCCESS [36.257s]
[INFO] Apache CloudStack Framework - Event Notification .. SUCCESS [8.444s]
[INFO] Apache CloudStack Cloud Engine Internal Components API  SUCCESS [12.983s]
[INFO] Apache CloudStack Server .. SUCCESS [2:23.647s]
[INFO] Apache CloudStack Usage Server  SUCCESS [22.721s]
[INFO] Apache XenSource XAPI . SUCCESS [14.525s]
[INFO] Apache CloudStack Cloud Engine Orchestration Component  FAILURE [7.842s]
[INFO] Apache CloudStack Cloud Services .. SKIPPED
[INFO] Apache CloudStack Secondary Storage Service ... SKIPPED
[INFO] Apache CloudStack Engine Storage Component  SKIPPED
[INFO] Apache CloudStack Engine Storage Volume Component . SKIPPED
[INFO] Apache CloudStack Engine Storage Image Component .. SKIPPED
[INFO] Apache CloudStack Engine Storage Data Motion Component  SKIPPED
[INFO] Apache CloudStack Engine Storage Cache Component .. SKIPPED
[INFO] Apache CloudStack Engine Storage Snapshot Component  SKIPPED
[INFO] Apache CloudStack Cloud Engine API  SKIPPED
[INFO] Apache CloudStack Cloud Engine Service  SKIPPED
[INFO] Apache CloudStack Plugin POM .. SKIPPED
[INFO] Apache CloudStack Plugin - API Rate Limit . SKIPPED
[INFO] Apache CloudStack Plugin - API Discovery .. SKIPPED
[INFO] Apache CloudStack Plugin - ACL Static Role Based .. SKIPPED
[INFO] Apache CloudStack Plugin - Host Anti-Affinity Processor  SKIPPED
[INFO] Apache CloudStack Plugin - Explicit Dedication Processor  SKIPPED
[INFO] Apache CloudStack Plug

Re: [PROPOSAL] Ability to control the external facing id of CS resources

2013-11-21 Thread Nitin Mehta
Please find the first draft of the Functional Spec.

https://cwiki.apache.org/confluence/display/CLOUDSTACK/Ability+to+control+t
he+external+id+of+first+class+objects

Thanks,
-Nitin

On 19/11/13 3:18 PM, "Nitin Mehta"  wrote:

>Admin should have the ability to control the external facing id of their
>resources (first class objects). This is important for the admins to have
>better control over their clouds
>say in case of emergencies when he/she wants to recover their resources.
>For this I propose that all the resource creation/updation API's need to
>be altered to take in the custom resource id in case the admin wants a
>custom id.
>
>Please note the following for the custom ids :-
>
>  *   This is an optional field and if not set, CS will use its existing
>custom logic to assign the resource id. If the CS id generation collides
>with the custom id, it will retry.
>  *   They have to be unique for the particular type of resource.
>  *   They will have to follow the UUID format.
>  *   This is external Id change only and MS refers to all the objects
>through the DB ids.
>
>I have created a JIRA item [1] for this and will come out with the FS
>soon. The work will be done for the release post 4.3 release.
>Please do share your suggestions/concerns on this.
>
>[1] https://issues.apache.org/jira/browse/CLOUDSTACK-5206
>
>Thanks,
>-Nitin



RE: A question on vm migrations when hosts are set into a maintenance mode.

2013-11-21 Thread Alex Huang
It's because we switched over to a new way to declare configuration variables.  
Here's some information about it.

https://cwiki.apache.org/confluence/display/CLOUDSTACK/Configuration

--Alex

From: Alex Ough [mailto:alex.o...@sungard.com]
Sent: Wednesday, November 20, 2013 9:56 AM
To: Alex Huang
Cc: dev@cloudstack.apache.org
Subject: Re: A question on vm migrations when hosts are set into a maintenance 
mode.

Hi Alex,

It looks like you moved the 'ExecuteInSequence' to the vm level from the 
management server, which seems to be ok, but at this time I cannot test it
because when I try to start up the management server, it fails because of 
database schema error, which is 'Unknown column 'disk_offering.cache_mode' in 
'field list' even if I re-built the database.

Is the schema change part of your changes or something other developer changed?

If that is from any other developer, can you fix this?

Thanks
Alex Ough



On Tue, Nov 19, 2013 at 7:25 PM, Alex Huang 
mailto:alex.hu...@citrix.com>> wrote:
Alex,

Can you do a pull from master and see if my fix fits your needs.  
Unfortunately, I'm on the road and couldn't do an actual test of it.

--Alex

From: Alex Huang
Sent: Tuesday, November 19, 2013 4:45 AM
To: 'Alex Ough'; dev@cloudstack.apache.org
Subject: RE: A question on vm migrations when hosts are set into a maintenance 
mode.

Alex,

Sorry for the late reply.  Been travelling the last couple of weeks.  I'll look 
into this today.

--Alex

From: Alex Ough [mailto:alex.o...@sungard.com]
Sent: Monday, November 18, 2013 6:17 AM
To: dev@cloudstack.apache.org
Cc: Alex Huang
Subject: Re: A question on vm migrations when hosts are set into a maintenance 
mode.

Thank Parasanna & Sebastien,
I also got his email and sent an email.
Waiting for his reply...

Thanks
Alex Ough

On Sat, Nov 16, 2013 at 3:05 PM, Sebastien Goasguen 
mailto:run...@gmail.com>> wrote:
cc Alex Huang to get his attention:


On Nov 15, 2013, at 10:17 PM, Prasanna Santhanam 
mailto:t...@apache.org>> wrote:

> Alex, Could you just do a git blame on the file and copy the emails of
> people who changed that bit of code? They may be able to help if Cc-ed
> directly.
>
> Thanks,
>
> On Fri, Nov 15, 2013 at 01:49:07PM -0600, Alex Ough wrote:
>> I hate to sending the same emails over and over again, but I really need to
>> finalize this feature to be included in the next code freeze because this
>> feature is very critical in our inside project.
>>
>> Anyone who can help, please?
>> Thanks
>> Alex Ough
>>
>>
>> On Thu, Nov 14, 2013 at 1:27 PM, Alex Ough 
>> mailto:alex.o...@sungard.com>> wrote:
>>
>>> Not sure if Alex Huang checked this, but can anyone help to resolve this?
>>>
>>> Thanks
>>> Alex Ough
>>>
>>>
>>> On Wed, Nov 13, 2013 at 11:39 AM, Alex Ough 
>>> mailto:alex.o...@sungard.com>> wrote:
>>>
 It sounds a little scary...

 I looked at the history and found these.

 8/9/ : file moved to engine by Alex Huang
 9/16 : '_mgmtServer.getExecuteInSequence()' changed to
 'getExecuteInSequence()' by Alex Huang


 Hi Alex Huang,
 I'm not sure if you're aware of this, but can you check this for me?

 Thanks
 Alex Ough



 On Wed, Nov 13, 2013 at 11:18 AM, Marcus Sorensen 
 mailto:shadow...@gmail.com>>wrote:

> I'm not sure. I know in the past when I've seen files change locations
> it has also clobbered updates to that file. Someone branched, did the
> reorganization work, and merged, while in-between the original file
> changed.
>
> On Wed, Nov 13, 2013 at 9:21 AM, Alex Ough 
> mailto:alex.o...@sungard.com>>
> wrote:
>> All,
>>
>> While merging my changes to 4.3 branch, I found that the option,
>> 'execute.in.sequence.hypervisor.commands' is NOT used in
> Start/Stop/Copy
>> commands in 'VirtualMachineManagerImpl.java' any more as below.
>>
>>
>> *StopCommand stop = new StopCommand(vm, getExecuteInSequence());*
>>
>> *protected boolean getExecuteInSequence() {*
>> * return false;*
>> *}*
>>
>> As you see in the above, the function, 'getExecuteInSequence', just
> returns
>> false instead of getting the value from the global variable.
>>
>> And one more change is that the file has been moved to
>> 'engine/orchestration/src/com/cloud/vm' from 'server/src/com/cloud/vm'.
>>
>> Am I missing something related with this or do we stop supporting this
>> option in 4.3?
>> I'm a little confused, so please help me resolve this.
>>
>> Thanks
>> Alex Ough
>>
>>
>>
>>
>> On Tue, Nov 12, 2013 at 4:20 PM, Alex Ough 
>> mailto:alex.o...@sungard.com>>
> wrote:
>>
>>> Thanks a lot for your confirmation, Marcus.
>>> I'll create a review request unless anyone has an objection.
>>>
>>> Thanks
>>> Alex Ough
>>>
>>>
>>> On

Re: Error while running master

2013-11-21 Thread Hugo Trippaers
Just bumped master to 4.4.0 and Wido did the upgrade scripts

Cheers,

Hugo

On 21 nov. 2013, at 16:19, Alex Huang  wrote:

> Here's a wiki page about it. 
> 
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/DB+Upgrade+in+CloudStack
> 
> --Alex
> 
>> -Original Message-
>> From: Syed Ahmed [mailto:sah...@cloudops.com]
>> Sent: Wednesday, November 20, 2013 12:37 PM
>> To: dev@cloudstack.apache.org
>> Cc: Wei ZHOU
>> Subject: Re: Error while running master
>> 
>> Is this change going in 4.3? Is so then the Alter table I guess should be in
>> schema-421to430.sql. I don't see a schema-430to440.sql though.
>> How deploydb read the files? Does it go through all the schema files or does
>> it pick the latest one?
>> 
>> 
>> Thanks,
>> -Syed
>> 
>> 
>> On Wed 20 Nov 2013 03:24:37 PM EST, Wei ZHOU wrote:
>>> Wido committed 1edaa36cc68e845a42339d5f267d49c82343aefb today.
>>> try after "ALTER TABLE  disk_offering ADD COLUMN cache_mode
>> varchar(20)"
>>> I do not know which schema file should be inserted into,
>>> schema-421to430.sql or schema-430to440.sql ?
>>> 
>>> 2013/11/20 Syed Ahmed 
>>> 
 Hi All,
 
 I am facing the following error when running the latest master. I have
 done a clean compile and have dropped and created the db again.
 
 [WARNING] Nested in
>> org.springframework.context.ApplicationContextException:
 Failed to start bean 'cloudStackLifeCycle'; nested exception is
 com.cloud.utils.exception.CloudRuntimeException: DB Exception on:
 com.mysql.jdbc.JDBC4PreparedStatement@538a1556: SELECT
>> disk_offering.id,
 disk_offering.domain_id, disk_offering.unique_name,
>> disk_offering.name,
 disk_offering.display_text, disk_offering.disk_size, disk_offering.tags,
 disk_offering.type, disk_offering.removed, disk_offering.created,
 disk_offering.recreatable, disk_offering.use_local_storage,
 disk_offering.system_use, disk_offering.customized, disk_offering.uuid,
 disk_offering.customized_iops, disk_offering.min_iops,
 disk_offering.max_iops, disk_offering.sort_key,
 disk_offering.bytes_read_rate, disk_offering.bytes_write_rate,
 disk_offering.iops_read_rate, disk_offering.iops_write_rate,
 disk_offering.cache_mode, disk_offering.display_offering,
 disk_offering.state, disk_offering.hv_ss_reserve, service_offering.cpu,
 service_offering.speed, service_offering.ram_size,
 service_offering.nw_rate, service_offering.mc_rate,
 service_offering.ha_enabled, service_offering.limit_cpu_use,
 service_offering.is_volatile, service_offering.host_tag,
 service_offering.default_use, service_offering.vm_type,
 service_offering.sort_key, service_offering.deployment_planner FROM
 service_offering INNER JOIN disk_offering ON service_offering.id=disk_
 offering.id  WHERE disk_offering.type='Service' AND
 disk_offering.unique_name = _binary'Cloud.Com-Small Instance'  AND
 disk_offering.system_use = 1 AND disk_offering.removed IS NULL :
 com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown
>> column
 'disk_offering.cache_mode' in 'field list'
 
 
 This is the definition of disk_offering from create-schema.sql
 
 CREATE TABLE `cloud`.`disk_offering` (
   `id` bigint unsigned NOT NULL auto_increment,
   `domain_id` bigint unsigned,
   `name` varchar(255) NOT NULL,
   `uuid` varchar(40),
   `display_text` varchar(4096) NULL COMMENT 'Descrianaption text set by
 the admin for display purpose only',
   `disk_size` bigint unsigned NOT NULL COMMENT 'disk space in byte',
   `type` varchar(32) COMMENT 'inheritted by who?',
   `tags` varchar(4096) COMMENT 'comma separated tags about the
 disk_offering',
   `recreatable` tinyint(1) unsigned NOT NULL DEFAULT 0 COMMENT 'The
>> root
 disk is always recreatable',
   `use_local_storage` tinyint(1) unsigned NOT NULL DEFAULT 0 COMMENT
 'Indicates whether local storage pools should be used',
   `unique_name` varchar(32) UNIQUE COMMENT 'unique name',
   `system_use` tinyint(1) unsigned NOT NULL DEFAULT 0 COMMENT 'is
>> this
 offering for system used only',
   `customized` tinyint(1) unsigned NOT NULL DEFAULT 0 COMMENT '0
>> implies
 not customized by default',
   `removed` datetime COMMENT 'date removed',
   `created` datetime COMMENT 'date the disk offering was created',
   `sort_key` int(32) NOT NULL default 0 COMMENT 'sort key used for
 customising sort method',
   PRIMARY KEY  (`id`),
   INDEX `i_disk_offering__removed`(`removed`),
   CONSTRAINT `uc_disk_offering__uuid` UNIQUE (`uuid`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
 
 
 And this is in my DB
 
 mysql> describe disk_offering;
 +---+-+--+-+
 -++
 | Field | Type| Null | Key | Default | Extra
|
 +---+-

Re: [PROPOSAL] Ability to control the external facing id of CS resources

2013-11-21 Thread Nitin Mehta
Please find the first draft of the Functional Spec.
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Ability+to+control+t
he+external+id+of+first+class+objects


Thanks,
-Nitin


On 19/11/13 3:18 PM, "Nitin Mehta"  wrote:

>Admin should have the ability to control the external facing id of their
>resources (first class objects). This is important for the admins to have
>better control over their clouds
>say in case of emergencies when he/she wants to recover their resources.
>For this I propose that all the resource creation/updation API's need to
>be altered to take in the custom resource id in case the admin wants a
>custom id.
>
>Please note the following for the custom ids :-
>
>  *   This is an optional field and if not set, CS will use its existing
>custom logic to assign the resource id. If the CS id generation collides
>with the custom id, it will retry.
>  *   They have to be unique for the particular type of resource.
>  *   They will have to follow the UUID format.
>  *   This is external Id change only and MS refers to all the objects
>through the DB ids.
>
>I have created a JIRA item [1] for this and will come out with the FS
>soon. The work will be done for the release post 4.3 release.
>Please do share your suggestions/concerns on this.
>
>[1] https://issues.apache.org/jira/browse/CLOUDSTACK-5206
>
>Thanks,
>-Nitin



Re: Enabling AMQP/RabbitMQ Events on master

2013-11-21 Thread Min Chen
CC Darren here, I am having the same question on current master.

Thanks
-min

On 11/21/13 5:00 AM, "David Grizzanti"  wrote:

>Alena,
>
>Do you or anyone else on the list have any updated information about
>enabling the events on master?
>
>Thanks!
>
>On Thursday, November 7, 2013, David Grizzanti wrote:
>
>> Alena,
>>
>> I don't think these steps will work on master (not installing packages
>>of
>> cloudstack), I'm building from source.  The componentContext XML file
>> doesn't seem to exist anymore since some of the Spring refactoring was
>>done.
>>
>> Thanks
>>
>>
>> On Thu, Nov 7, 2013 at 12:42 PM, Alena Prokharchyk <
>> alena.prokharc...@citrix.com> wrote:
>>
>>  David,
>>
>>  Here are the instructions that I've got from one of the CS QA
>>engineers,
>> hope it helps.
>>
>>  FS -
>> 
>>http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.1.0/html/Admi
>>n_Guide/events.html#event-framework
>>
>>
>>
>> Test cases relating to this feature was covered as part of Regions
>>Feature
>> testing -
>> 
>>https://cwiki.apache.org/confluence/download/attachments/30757955/Regions
>>-Test-Execution-42.xlsx
>>
>>
>>
>>
>>
>> Steps to set up RabbitMQ Server:
>>
>>
>>
>> Have a RabbitMQ server set up.
>>
>> Enable rabbitmq_management plugin
>>
>> C:\Program Files\RabbitMQ
>> Server\rabbitmq_server-3.0.3\sbin>rabbitmq-plugins enable
>> rabbitmq_management
>>
>> Restart RabbitMQ service.
>>
>> In management server :
>> Added the following in
>> 
>>/usr/share/cloudstack-management/webapps/client/WEB-INF/classes/component
>>Context.xml
>>
>>
>> > class="org.apache.cloudstack.mom.rabbitmq.RabbitMQEventBus">
>> 
>> 
>> 
>>
>> 
>> 
>>
>>   
>>
>> Restart management server.
>>
>>
>>  -Alena.
>>
>>   From: David Grizzanti 
>> Reply-To: "dev@cloudstack.apache.org" 
>> Date: Thursday, November 7, 2013 5:04 AM
>> To: "dev@cloudstack.apache.org" 
>> Subject: Enabling AMQP/RabbitMQ Events on master
>>
>>   Hi,
>>
>>  I was looking for some help in enabling the AMQP/RabbitMQ events in
>> CloudStack.  I'm familiar with enabling these events in 4.2, however,
>>I'm
>> not all the familiar with Spring and given the new modularized changes
>>I'm
>> not really sure where the XML snippet belongs for the
>>eventNotificationBus.
>> Previously I had been placing this in applicationContext.
>>
>>
>
>-- 
>David Grizzanti
>Software Engineer
>Sungard Availability Services
>
>e: david.grizza...@sungard.com
>w: 215.446.1431
>c: 570.575.0315



Re: A question on vm migrations when hosts are set into a maintenance mode.

2013-11-21 Thread Alex Ough
Hi Wido,

Related with the 'disk_offering.cache_mode',
I found that there is a sql file to add that column, which is 'cloudstack/
developer/target/db/db/schema-430to440.sql'.
But after running it manually, I have another error saying that the
'cache_mode' cannot be null, so I just changed the column to allow null to
move on.

So you may include the sql file and allow null in that column.

Thanks
Alex Ough


On Wed, Nov 20, 2013 at 3:45 PM, Alex Huang  wrote:

>  Wido,
>
>
>
> Looks like you didn’t update your schema file or forgot to add a schema
> upgrade file in master?  See the error described by Alex below.
>
>
>
> @Alex
>
> You can probably remove the cachemode field in the DiskOfferingVO for now.  
> Or revert  1edaa36 on your local repo to keep moving forward.
>
>
>
> --Alex
>
>
>
> *From:* Alex Ough [mailto:alex.o...@sungard.com]
> *Sent:* Wednesday, November 20, 2013 9:56 AM
> *To:* Alex Huang
> *Cc:* dev@cloudstack.apache.org
>
> *Subject:* Re: A question on vm migrations when hosts are set into a
> maintenance mode.
>
>
>
> Hi Alex,
>
>
>
> It looks like you moved the 'ExecuteInSequence' to the vm level from the
> management server, which seems to be ok, but at this time I cannot test it
>
> because when I try to start up the management server, it fails because of
> database schema error, which is 'Unknown column 'disk_offering.cache_mode'
> in 'field list' even if I re-built the database.
>
>
>
> Is the schema change part of your changes or something other developer
> changed?
>
>
>
> If that is from any other developer, can you fix this?
>
>
>
> Thanks
>
> Alex Ough
>
>
>
>
>
>
>
> On Tue, Nov 19, 2013 at 7:25 PM, Alex Huang  wrote:
>
>  Alex,
>
>
>
> Can you do a pull from master and see if my fix fits your needs.
> Unfortunately, I’m on the road and couldn’t do an actual test of it.
>
>
>
> --Alex
>
>
>
> *From:* Alex Huang
> *Sent:* Tuesday, November 19, 2013 4:45 AM
> *To:* 'Alex Ough'; dev@cloudstack.apache.org
> *Subject:* RE: A question on vm migrations when hosts are set into a
> maintenance mode.
>
>
>
> Alex,
>
>
>
> Sorry for the late reply.  Been travelling the last couple of weeks.  I’ll
> look into this today.
>
>
>
> --Alex
>
>
>
> *From:* Alex Ough [mailto:alex.o...@sungard.com ]
> *Sent:* Monday, November 18, 2013 6:17 AM
> *To:* dev@cloudstack.apache.org
> *Cc:* Alex Huang
> *Subject:* Re: A question on vm migrations when hosts are set into a
> maintenance mode.
>
>
>
> Thank Parasanna & Sebastien,
>
> I also got his email and sent an email.
>
> Waiting for his reply...
>
>
>
> Thanks
>
> Alex Ough
>
>
>
> On Sat, Nov 16, 2013 at 3:05 PM, Sebastien Goasguen 
> wrote:
>
> cc Alex Huang to get his attention:
>
>
>
> On Nov 15, 2013, at 10:17 PM, Prasanna Santhanam  wrote:
>
> > Alex, Could you just do a git blame on the file and copy the emails of
> > people who changed that bit of code? They may be able to help if Cc-ed
> > directly.
> >
> > Thanks,
> >
> > On Fri, Nov 15, 2013 at 01:49:07PM -0600, Alex Ough wrote:
> >> I hate to sending the same emails over and over again, but I really
> need to
> >> finalize this feature to be included in the next code freeze because
> this
> >> feature is very critical in our inside project.
> >>
> >> Anyone who can help, please?
> >> Thanks
> >> Alex Ough
> >>
> >>
> >> On Thu, Nov 14, 2013 at 1:27 PM, Alex Ough 
> wrote:
> >>
> >>> Not sure if Alex Huang checked this, but can anyone help to resolve
> this?
> >>>
> >>> Thanks
> >>> Alex Ough
> >>>
> >>>
> >>> On Wed, Nov 13, 2013 at 11:39 AM, Alex Ough 
> wrote:
> >>>
>  It sounds a little scary...
> 
>  I looked at the history and found these.
> 
>  8/9/ : file moved to engine by Alex Huang
>  9/16 : '_mgmtServer.getExecuteInSequence()' changed to
>  'getExecuteInSequence()' by Alex Huang
> 
> 
>  Hi Alex Huang,
>  I'm not sure if you're aware of this, but can you check this for me?
> 
>  Thanks
>  Alex Ough
> 
> 
> 
>  On Wed, Nov 13, 2013 at 11:18 AM, Marcus Sorensen <
> shadow...@gmail.com>wrote:
> 
> > I'm not sure. I know in the past when I've seen files change
> locations
> > it has also clobbered updates to that file. Someone branched, did the
> > reorganization work, and merged, while in-between the original file
> > changed.
> >
> > On Wed, Nov 13, 2013 at 9:21 AM, Alex Ough 
> > wrote:
> >> All,
> >>
> >> While merging my changes to 4.3 branch, I found that the option,
> >> 'execute.in.sequence.hypervisor.commands' is NOT used in
> > Start/Stop/Copy
> >> commands in 'VirtualMachineManagerImpl.java' any more as below.
> >>
> >>
> >> *StopCommand stop = new StopCommand(vm, getExecuteInSequence());*
> >>
> >> *protected boolean getExecuteInSequence() {*
> >> * return false;*
> >> *}*
> >>
> >> As you see in the above, the function, 'getExecuteInSequence', just
> > returns
> >> false instead of getting the val

Re: Enabling AMQP/RabbitMQ Events on master

2013-11-21 Thread Alena Prokharchyk
Murali might help you with that as he developed the feature.

-Alena.

From: Min Chen mailto:min.c...@citrix.com>>
Date: Thursday, November 21, 2013 9:30 AM
To: "dev@cloudstack.apache.org" 
mailto:dev@cloudstack.apache.org>>, Alena 
Prokharchyk mailto:alena.prokharc...@citrix.com>>
Cc: Darren Shepherd 
mailto:darren.sheph...@citrix.com>>
Subject: Re: Enabling AMQP/RabbitMQ Events on master

CC Darren here, I am having the same question on current master.

Thanks
-min

On 11/21/13 5:00 AM, "David Grizzanti" 
mailto:david.grizza...@sungard.com>> wrote:

Alena,

Do you or anyone else on the list have any updated information about
enabling the events on master?

Thanks!

On Thursday, November 7, 2013, David Grizzanti wrote:

Alena,

I don't think these steps will work on master (not installing packages
of
cloudstack), I'm building from source.  The componentContext XML file
doesn't seem to exist anymore since some of the Spring refactoring was
done.

Thanks


On Thu, Nov 7, 2013 at 12:42 PM, Alena Prokharchyk <
alena.prokharc...@citrix.com> wrote:

  David,

  Here are the instructions that I've got from one of the CS QA
engineers,
hope it helps.

  FS -
http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.1.0/html/Admi
n_Guide/events.html#event-framework



Test cases relating to this feature was covered as part of Regions
Feature
testing -
https://cwiki.apache.org/confluence/download/attachments/30757955/Regions
-Test-Execution-42.xlsx





Steps to set up RabbitMQ Server:



Have a RabbitMQ server set up.

Enable rabbitmq_management plugin

C:\Program Files\RabbitMQ
Server\rabbitmq_server-3.0.3\sbin>rabbitmq-plugins enable
rabbitmq_management

Restart RabbitMQ service.

In management server :
Added the following in
/usr/share/cloudstack-management/webapps/client/WEB-INF/classes/component
Context.xml


 
 
 
 

 
 

   

Restart management server.


  -Alena.

   From: David Grizzanti 
mailto:david.grizza...@sungard.com>>
Reply-To: "dev@cloudstack.apache.org" 
mailto:dev@cloudstack.apache.org>>
Date: Thursday, November 7, 2013 5:04 AM
To: "dev@cloudstack.apache.org" 
mailto:dev@cloudstack.apache.org>>
Subject: Enabling AMQP/RabbitMQ Events on master

   Hi,

  I was looking for some help in enabling the AMQP/RabbitMQ events in
CloudStack.  I'm familiar with enabling these events in 4.2, however,
I'm
not all the familiar with Spring and given the new modularized changes
I'm
not really sure where the XML snippet belongs for the
eventNotificationBus.
Previously I had been placing this in applicationContext.



--
David Grizzanti
Software Engineer
Sungard Availability Services

e: david.grizza...@sungard.com
w: 215.446.1431
c: 570.575.0315




Re: A question on vm migrations when hosts are set into a maintenance mode.

2013-11-21 Thread Alex Ough
I see. Thanks for the information, Alex.

Alex Ough


On Thu, Nov 21, 2013 at 9:22 AM, Alex Huang  wrote:

>  It’s because we switched over to a new way to declare configuration
> variables.  Here’s some information about it.
>
>
>
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/Configuration
>
>
>
> --Alex
>
>
>
> *From:* Alex Ough [mailto:alex.o...@sungard.com]
> *Sent:* Wednesday, November 20, 2013 9:56 AM
> *To:* Alex Huang
> *Cc:* dev@cloudstack.apache.org
> *Subject:* Re: A question on vm migrations when hosts are set into a
> maintenance mode.
>
>
>
> Hi Alex,
>
>
>
> It looks like you moved the 'ExecuteInSequence' to the vm level from the
> management server, which seems to be ok, but at this time I cannot test it
>
> because when I try to start up the management server, it fails because of
> database schema error, which is 'Unknown column 'disk_offering.cache_mode'
> in 'field list' even if I re-built the database.
>
>
>
> Is the schema change part of your changes or something other developer
> changed?
>
>
>
> If that is from any other developer, can you fix this?
>
>
>
> Thanks
>
> Alex Ough
>
>
>
>
>
>
>
> On Tue, Nov 19, 2013 at 7:25 PM, Alex Huang  wrote:
>
>  Alex,
>
>
>
> Can you do a pull from master and see if my fix fits your needs.
> Unfortunately, I’m on the road and couldn’t do an actual test of it.
>
>
>
> --Alex
>
>
>
> *From:* Alex Huang
> *Sent:* Tuesday, November 19, 2013 4:45 AM
> *To:* 'Alex Ough'; dev@cloudstack.apache.org
> *Subject:* RE: A question on vm migrations when hosts are set into a
> maintenance mode.
>
>
>
> Alex,
>
>
>
> Sorry for the late reply.  Been travelling the last couple of weeks.  I’ll
> look into this today.
>
>
>
> --Alex
>
>
>
> *From:* Alex Ough [mailto:alex.o...@sungard.com ]
> *Sent:* Monday, November 18, 2013 6:17 AM
> *To:* dev@cloudstack.apache.org
> *Cc:* Alex Huang
> *Subject:* Re: A question on vm migrations when hosts are set into a
> maintenance mode.
>
>
>
> Thank Parasanna & Sebastien,
>
> I also got his email and sent an email.
>
> Waiting for his reply...
>
>
>
> Thanks
>
> Alex Ough
>
>
>
> On Sat, Nov 16, 2013 at 3:05 PM, Sebastien Goasguen 
> wrote:
>
> cc Alex Huang to get his attention:
>
>
>
> On Nov 15, 2013, at 10:17 PM, Prasanna Santhanam  wrote:
>
> > Alex, Could you just do a git blame on the file and copy the emails of
> > people who changed that bit of code? They may be able to help if Cc-ed
> > directly.
> >
> > Thanks,
> >
> > On Fri, Nov 15, 2013 at 01:49:07PM -0600, Alex Ough wrote:
> >> I hate to sending the same emails over and over again, but I really
> need to
> >> finalize this feature to be included in the next code freeze because
> this
> >> feature is very critical in our inside project.
> >>
> >> Anyone who can help, please?
> >> Thanks
> >> Alex Ough
> >>
> >>
> >> On Thu, Nov 14, 2013 at 1:27 PM, Alex Ough 
> wrote:
> >>
> >>> Not sure if Alex Huang checked this, but can anyone help to resolve
> this?
> >>>
> >>> Thanks
> >>> Alex Ough
> >>>
> >>>
> >>> On Wed, Nov 13, 2013 at 11:39 AM, Alex Ough 
> wrote:
> >>>
>  It sounds a little scary...
> 
>  I looked at the history and found these.
> 
>  8/9/ : file moved to engine by Alex Huang
>  9/16 : '_mgmtServer.getExecuteInSequence()' changed to
>  'getExecuteInSequence()' by Alex Huang
> 
> 
>  Hi Alex Huang,
>  I'm not sure if you're aware of this, but can you check this for me?
> 
>  Thanks
>  Alex Ough
> 
> 
> 
>  On Wed, Nov 13, 2013 at 11:18 AM, Marcus Sorensen <
> shadow...@gmail.com>wrote:
> 
> > I'm not sure. I know in the past when I've seen files change
> locations
> > it has also clobbered updates to that file. Someone branched, did the
> > reorganization work, and merged, while in-between the original file
> > changed.
> >
> > On Wed, Nov 13, 2013 at 9:21 AM, Alex Ough 
> > wrote:
> >> All,
> >>
> >> While merging my changes to 4.3 branch, I found that the option,
> >> 'execute.in.sequence.hypervisor.commands' is NOT used in
> > Start/Stop/Copy
> >> commands in 'VirtualMachineManagerImpl.java' any more as below.
> >>
> >>
> >> *StopCommand stop = new StopCommand(vm, getExecuteInSequence());*
> >>
> >> *protected boolean getExecuteInSequence() {*
> >> * return false;*
> >> *}*
> >>
> >> As you see in the above, the function, 'getExecuteInSequence', just
> > returns
> >> false instead of getting the value from the global variable.
> >>
> >> And one more change is that the file has been moved to
> >> 'engine/orchestration/src/com/cloud/vm' from
> 'server/src/com/cloud/vm'.
> >>
> >> Am I missing something related with this or do we stop supporting
> this
> >> option in 4.3?
> >> I'm a little confused, so please help me resolve this.
> >>
> >> Thanks
> >> Alex Ough
> >>
> >>
> >>
> >>
> >> On Tue, Nov 12, 2013 at 

RE: [MERGE] Reformat of the source code....

2013-11-21 Thread Alex Huang
Hi All,

I just pushed this change.  It's a big change but mostly harmless as it's 
mostly white space.  I'm unable to turn on checkstyle on the whole project as 
there's still about 1000 strings that are longer than the 180 column limit.  
Will try to work through those before I leave CCC tomorrow.  Thanks to Hugo and 
Daan for the checkstyle plugin that's already in the nvp plugin.  I just 
re-used that for the checkstyle checks.

The changes include the following:
- Removal of unused imports
- Reorganized the imports
- Expanded '*' imports
- Changed tabs to space
- Removed trailing spaces
- Changed dos line endings to unix line endings (although I don't think any 
files actually had that problem.)
- Rejoined code that were broken up due to the 80 column limit.
- Broken up lines longer than the 180 column limit.

--Alex

> -Original Message-
> From: Hugo Trippaers [mailto:trip...@gmail.com]
> Sent: Wednesday, November 20, 2013 2:39 PM
> To: dev@cloudstack.apache.org
> Cc: dev@cloudstack.apache.org
> Subject: Re: [MERGE] Reformat of the source code
> 
> +1!
> 
> Sent from my iPhone
> 
> > On 20 nov. 2013, at 16:15, Alex Huang  wrote:
> >
> > Taking advantage of the CCC happening and 4.3 just being branched, I did a
> reformat of the entire source base.  It converts all tabs to spaces and rejoin
> lines that were split due to the 80 column limit.  I also added checkstyle to
> maven build.  There may be things missing here and there but overall should
> reduce the number of lines in our checkins.
> >
> > It created a massive amount of change of course but it all compiles and
> starts up.  Any concerns about met checking this in to master?  I'll wait 24
> hours for this merge request since we've talked about this before.
> >
> > --Alex


Re: Review Request 15250: Fix Hyper-V plugin RAT issue

2013-11-21 Thread Amogh Vasekar


> On Nov. 5, 2013, 11:47 p.m., edison su wrote:
> > Ship It!

Reminder - 

Hi,
This request has been pending for long. Please take the time to close the 
request if it has been committed. Thanks!


- Amogh


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/15250/#review28235
---


On Nov. 5, 2013, 11:08 p.m., Donal Lafferty wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/15250/
> ---
> 
> (Updated Nov. 5, 2013, 11:08 p.m.)
> 
> 
> Review request for cloudstack and Rayees Namathponnan.
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> ---
> 
> git config files were missing the ASF license
> 
> 
> Diffs
> -
> 
>   plugins/hypervisors/hyperv/DotNet/ServerResource/.gitignore 
> 99afc0b89f247f97ff133e48fbf0746306cc8c9e 
> 
> Diff: https://reviews.apache.org/r/15250/diff/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Donal Lafferty
> 
>



Jenkins build is back to normal : build-master » Apache CloudStack Cloud Engine Orchestration Component #29

2013-11-21 Thread jenkins
See 




Build failed in Jenkins: build-master-noredist #1810

2013-11-21 Thread jenkins
See 

Changes:

[kishan] Fix listRouter by clusterId and upgradeRouterTemplate by clusterId

[htrippaers] Expose getPrimaryDataStore(String uuid) through the 
DatastoreManager interface so it can be used clients.

[htrippaers] StoragePoolResponse.getId() returns a String with an UUID

[Daan Hoogland] dos2unix

[Daan Hoogland] Checkstyle adjustments in code and configuration

[jessicawang] CLOUDSTACK-4793: UI > Virtual Routers > Advanced Search > add 
cluster dropdown since API now supports it.

[girish] CLOUDSTACK-5194: portable ip - Improving cleanup code to

[muralimmreddy] Adding protocol parameter to loadbalancer response

[jessicawang] CLOUDSTACK-4793: UI > Virtual Routers > add new action "Upgrade 
Router to Newer Template" on top of listView.

[jessicawang] CLOUDSTACK-4793: UI > Virtual Routers > add new action "Upgrade 
Router to Newer Template" in detailView.

[alex.huang] Fixed issues with execute in sequence

[fjkd] add mgt.server.vendor global configuration, in case different vendor 
wants to identify its identity

[likitha.shetty] CLOUDSTACK-5069. Added global config 
'vmware.vcenter.session.timeout' to make the vCenter session timeout value 
configurable.

[chipchilders] No, this field does not use CIDR notation

[Ian Duffy] added LDAP group name label in add account wizard

[Ian Duffy] Fix codestyle/formatting within plugins/userauthenticators/ldap

[wido] CLOUDSTACK-1302: Allow a cache mode per disk offering

[jessicawang] CLOUDSTACK-5222: UI > Infrastructure > Sockets > count only hosts 
whose type is routing.

[sudison] Add logs in case ipassoccmd failed

[kelveny] side-by-side VM sync management at manager level

[likitha.shetty] CLOUDSTACK-1868. GetVmStatsCommand throws NullPointerException 
with VMWare.

[girish] CLOUDSTACK-5215: Correcting and refactoring code related to

[girish] CLOUDSTACK-5204: test_routers - fixed ssh issue

[girish] CLOUDSTACK-5201: Correcting code related to schedule of

[rajesh.battala] Add support of attaching nic's to the specified network labels 
in HyperV

[wido] CLOUDSTACK-1302: Add cache mode to SQL upgrade file

[likitha.shetty] CLOUDSTACK-5227. Cannot pass Japanese characters as parameter 
values to an API.

[rajesh.battala] Modified GetExternalVirtSwitch to take the switchname param 
and return the same or default one

[muralimmreddy] CS-16962: [API] [EIP/ELB enabled Zone] Need to display EIP 
address as

[wido] Revert "CLOUDSTACK-1302: Add cache mode to SQL upgrade file"

[wido] Add upgrade path from 4.3 to 4.4

--
Started by upstream project "build-master" build number 26
originally caused by:
 Started by an SCM change
[EnvInject] - Loading node environment variables.
Building remotely on rpmbuilder-2 in workspace 

Checkout:build-master-noredist / 
 - 
hudson.remoting.Channel@eb3689:rpmbuilder-2
Using strategy: Default
Last Built Revision: Revision 065e5afa08a34d414cdb8ced092c0dc8756c8463 
(origin/master)
Cloning the remote Git repository
Cloning repository https://git-wip-us.apache.org/repos/asf/cloudstack.git
git --version
git version 1.7.1
Fetching upstream changes from origin
Commencing build of Revision 036fffcd7cce7dcc320dc8cefda171a2b7cbea7d 
(origin/master)
Checking out Revision 036fffcd7cce7dcc320dc8cefda171a2b7cbea7d (origin/master)
[copy-to-slave] Copying 'cloudstack-nonoss-deps.tgz', excluding nothing, from 
'file:/var/lib/jenkins/userContent/' on the master to 
' on 
'rpmbuilder-2'.
[build-master-noredist] $ /bin/sh -xe /tmp/hudson249411580102455279.sh
+ echo 'Getting noredist patches'
Getting noredist patches
+ which mvn
/usr/bin/mvn
+ cd deps
+ tar -xvf ../cloudstack-nonoss-deps.tgz
apputils.jar
cloud-iControl.jar
cloud-manageontap.jar
cloud-netscaler.jar
cloud-netscaler-sdx.jar
libvirt-0.4.8.jar
manageontap.jar
vim25_51.jar
vim25.jar
vim.jar
+ bash -x install-non-oss.sh
+ mvn install:install-file -Dfile=cloud-iControl.jar -DgroupId=com.cloud.com.f5 
-DartifactId=icontrol -Dversion=1.0 -Dpackaging=jar
[INFO] Scanning for projects...
[INFO] 
[INFO] 
[INFO] Building Maven Stub Project (No POM) 1
[INFO] 
[INFO] 
[INFO] --- maven-install-plugin:2.3.1:install-file (default-cli) @ 
standalone-pom ---
[INFO] Installing 

 to 
/var/lib/jenkins/.m2/repository/com/cloud/com/f5/icontrol/1.0/icontrol-1.0.jar
[INFO] 
[INFO] BUILD SUCCESS
[INFO] -

Review Request 15761: CLOUDSTACK-5230: Removing test cases' dependency on each other leading to failures

2013-11-21 Thread Ashutosh Kelkar

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/15761/
---

Review request for cloudstack, Girish Shilamkar and SrikanteswaraRao Talluri.


Bugs: CLOUDSTACK-5230
https://issues.apache.org/jira/browse/CLOUDSTACK-5230


Repository: cloudstack-git


Description
---

Removing dependency between the test cases.
Some test cases were trying to delete/recover the instances which are already 
deleted in other test cases.


Diffs
-

  test/integration/component/test_vpc_vm_life_cycle.py beb5b99 

Diff: https://reviews.apache.org/r/15761/diff/


Testing
---

Tested locally on VMware Advanced setup.

Log:

Ran the failing test cases with the dependent test case.

test_05_destroy_instance_in_network 
(test_vpc_vm_life_cycle_fixed.TestVMLifeCycleSharedNwVPC)
Test destroy an instance in VPC networks ... ok
test_06_recover_instance_in_network 
(test_vpc_vm_life_cycle_fixed.TestVMLifeCycleSharedNwVPC)
Test recover an instance in VPC networks ... ok
test_10_expunge_instance_in_network 
(test_vpc_vm_life_cycle_fixed.TestVMLifeCycleSharedNwVPC)
Test expunge an instance in VPC networks ... ok


Thanks,

Ashutosh Kelkar



Review Request 15763: Changed 'MigrateCommand' to use the global setting value of 'execute.in.sequence.hypervisor.commands'

2013-11-21 Thread Alex Ough

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/15763/
---

Review request for cloudstack.


Repository: cloudstack-git


Description
---

When a host is switched to the 'maintenance mode', the vms in that host are 
migrated to another available hosts. Currently, the vm migrations are executed 
sequentially, it can take a lot of time when there are quite number of vms. So 
I changed 'MigrateCommand' to get the value of 'executeInSequence' property 
from the global setting value of 'execute.in.sequence.hypervisor.commands' so 
that users can execute the migrations in parallel to save time.


Diffs
-

  core/src/com/cloud/agent/api/MigrateCommand.java 0d8f70c 
  engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java 3a3de70 
  setup/db/db/schema-410to420.sql 522ccc4 
  setup/db/db/schema-430to440.sql 9bb9602 

Diff: https://reviews.apache.org/r/15763/diff/


Testing
---

Tested in the simulator mode and Xen servers.


Thanks,

Alex Ough



Re: Enabling AMQP/RabbitMQ Events on master

2013-11-21 Thread David Grizzanti
Alena,

Do you or anyone else on the list have any updated information about
enabling the events on master?

Thanks!

On Thursday, November 7, 2013, David Grizzanti wrote:

> Alena,
>
> I don't think these steps will work on master (not installing packages of
> cloudstack), I'm building from source.  The componentContext XML file
> doesn't seem to exist anymore since some of the Spring refactoring was done.
>
> Thanks
>
>
> On Thu, Nov 7, 2013 at 12:42 PM, Alena Prokharchyk <
> alena.prokharc...@citrix.com> wrote:
>
>  David,
>
>  Here are the instructions that I've got from one of the CS QA engineers,
> hope it helps.
>
>  FS -
> http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.1.0/html/Admin_Guide/events.html#event-framework
>
>
>
> Test cases relating to this feature was covered as part of Regions Feature
> testing -
> https://cwiki.apache.org/confluence/download/attachments/30757955/Regions-Test-Execution-42.xlsx
>
>
>
>
>
> Steps to set up RabbitMQ Server:
>
>
>
> Have a RabbitMQ server set up.
>
> Enable rabbitmq_management plugin
>
> C:\Program Files\RabbitMQ
> Server\rabbitmq_server-3.0.3\sbin>rabbitmq-plugins enable
> rabbitmq_management
>
> Restart RabbitMQ service.
>
> In management server :
> Added the following in
> /usr/share/cloudstack-management/webapps/client/WEB-INF/classes/componentContext.xml
>
>
>  class="org.apache.cloudstack.mom.rabbitmq.RabbitMQEventBus">
> 
> 
> 
>
> 
> 
>
>   
>
> Restart management server.
>
>
>  -Alena.
>
>   From: David Grizzanti 
> Reply-To: "dev@cloudstack.apache.org" 
> Date: Thursday, November 7, 2013 5:04 AM
> To: "dev@cloudstack.apache.org" 
> Subject: Enabling AMQP/RabbitMQ Events on master
>
>   Hi,
>
>  I was looking for some help in enabling the AMQP/RabbitMQ events in
> CloudStack.  I'm familiar with enabling these events in 4.2, however, I'm
> not all the familiar with Spring and given the new modularized changes I'm
> not really sure where the XML snippet belongs for the eventNotificationBus.
> Previously I had been placing this in applicationContext.
>
>

-- 
David Grizzanti
Software Engineer
Sungard Availability Services

e: david.grizza...@sungard.com
w: 215.446.1431
c: 570.575.0315


Build failed in Jenkins: build-master-noredist #1811

2013-11-21 Thread jenkins
See 

Changes:

[htrippaers] Bump 4.3.0 to 4.4.0 in master

[htrippaers] Add the upgrade path to all versions

--
Started by upstream project "build-master" build number 27
originally caused by:
 Started by an SCM change
[EnvInject] - Loading node environment variables.
Building remotely on rpmbuilder-2 in workspace 

Checkout:build-master-noredist / 
 - 
hudson.remoting.Channel@eb3689:rpmbuilder-2
Using strategy: Default
Last Built Revision: Revision 036fffcd7cce7dcc320dc8cefda171a2b7cbea7d 
(origin/master)
Fetching changes from 1 remote Git repository
Fetching upstream changes from origin
Commencing build of Revision 3a414a850f488b914394e61a8c87d0c860a8ca76 
(origin/master)
Checking out Revision 3a414a850f488b914394e61a8c87d0c860a8ca76 (origin/master)
[copy-to-slave] Copying 'cloudstack-nonoss-deps.tgz', excluding nothing, from 
'file:/var/lib/jenkins/userContent/' on the master to 
' on 
'rpmbuilder-2'.
[build-master-noredist] $ /bin/sh -xe /tmp/hudson2951051458688026569.sh
+ echo 'Getting noredist patches'
Getting noredist patches
+ which mvn
/usr/bin/mvn
+ cd deps
+ tar -xvf ../cloudstack-nonoss-deps.tgz
apputils.jar
cloud-iControl.jar
cloud-manageontap.jar
cloud-netscaler.jar
cloud-netscaler-sdx.jar
libvirt-0.4.8.jar
manageontap.jar
vim25_51.jar
vim25.jar
vim.jar
+ bash -x install-non-oss.sh
+ mvn install:install-file -Dfile=cloud-iControl.jar -DgroupId=com.cloud.com.f5 
-DartifactId=icontrol -Dversion=1.0 -Dpackaging=jar
[INFO] Scanning for projects...
[INFO] 
[INFO] 
[INFO] Building Maven Stub Project (No POM) 1
[INFO] 
[INFO] 
[INFO] --- maven-install-plugin:2.3.1:install-file (default-cli) @ 
standalone-pom ---
[INFO] Installing 

 to 
/var/lib/jenkins/.m2/repository/com/cloud/com/f5/icontrol/1.0/icontrol-1.0.jar
[INFO] 
[INFO] BUILD SUCCESS
[INFO] 
[INFO] Total time: 0.646s
[INFO] Finished at: Thu Nov 21 10:56:47 EST 2013
[INFO] Final Memory: 3M/51M
[INFO] 
+ mvn install:install-file -Dfile=cloud-netscaler-sdx.jar 
-DgroupId=com.cloud.com.citrix -DartifactId=netscaler-sdx -Dversion=1.0 
-Dpackaging=jar
[INFO] Scanning for projects...
[INFO] 
[INFO] 
[INFO] Building Maven Stub Project (No POM) 1
[INFO] 
[INFO] 
[INFO] --- maven-install-plugin:2.3.1:install-file (default-cli) @ 
standalone-pom ---
[INFO] Installing 

 to 
/var/lib/jenkins/.m2/repository/com/cloud/com/citrix/netscaler-sdx/1.0/netscaler-sdx-1.0.jar
[INFO] 
[INFO] BUILD SUCCESS
[INFO] 
[INFO] Total time: 0.808s
[INFO] Finished at: Thu Nov 21 10:56:50 EST 2013
[INFO] Final Memory: 3M/50M
[INFO] 
+ '[' -e cloud-manageontap.jar ']'
+ mv cloud-manageontap.jar manageontap.jar
+ mvn install:install-file -Dfile=manageontap.jar 
-DgroupId=com.cloud.com.netapp -DartifactId=manageontap -Dversion=4.0 
-Dpackaging=jar
[INFO] Scanning for projects...
[INFO] 
[INFO] 
[INFO] Building Maven Stub Project (No POM) 1
[INFO] 
[INFO] 
[INFO] --- maven-install-plugin:2.3.1:install-file (default-cli) @ 
standalone-pom ---
[INFO] Installing 

 to 
/var/lib/jenkins/.m2/repository/com/cloud/com/netapp/manageontap/4.0/manageontap-4.0.jar
[INFO] 
[INFO] BUILD SUCCESS
[INFO] 
[INFO] Total time: 0.717s
[INFO] Finished at: Thu Nov 21 10:56:52 EST 2013
[INFO] Final Memory: 3M/51M
[INFO] --

RE: Error while running master

2013-11-21 Thread Alex Huang
Here's a wiki page about it. 

https://cwiki.apache.org/confluence/display/CLOUDSTACK/DB+Upgrade+in+CloudStack

--Alex

> -Original Message-
> From: Syed Ahmed [mailto:sah...@cloudops.com]
> Sent: Wednesday, November 20, 2013 12:37 PM
> To: dev@cloudstack.apache.org
> Cc: Wei ZHOU
> Subject: Re: Error while running master
> 
> Is this change going in 4.3? Is so then the Alter table I guess should be in
> schema-421to430.sql. I don't see a schema-430to440.sql though.
> How deploydb read the files? Does it go through all the schema files or does
> it pick the latest one?
> 
> 
> Thanks,
> -Syed
> 
> 
> On Wed 20 Nov 2013 03:24:37 PM EST, Wei ZHOU wrote:
> > Wido committed 1edaa36cc68e845a42339d5f267d49c82343aefb today.
> > try after "ALTER TABLE  disk_offering ADD COLUMN cache_mode
> varchar(20)"
> > I do not know which schema file should be inserted into,
> > schema-421to430.sql or schema-430to440.sql ?
> >
> > 2013/11/20 Syed Ahmed 
> >
> >> Hi All,
> >>
> >> I am facing the following error when running the latest master. I have
> >> done a clean compile and have dropped and created the db again.
> >>
> >> [WARNING] Nested in
> org.springframework.context.ApplicationContextException:
> >> Failed to start bean 'cloudStackLifeCycle'; nested exception is
> >> com.cloud.utils.exception.CloudRuntimeException: DB Exception on:
> >> com.mysql.jdbc.JDBC4PreparedStatement@538a1556: SELECT
> disk_offering.id,
> >> disk_offering.domain_id, disk_offering.unique_name,
> disk_offering.name,
> >> disk_offering.display_text, disk_offering.disk_size, disk_offering.tags,
> >> disk_offering.type, disk_offering.removed, disk_offering.created,
> >> disk_offering.recreatable, disk_offering.use_local_storage,
> >> disk_offering.system_use, disk_offering.customized, disk_offering.uuid,
> >> disk_offering.customized_iops, disk_offering.min_iops,
> >> disk_offering.max_iops, disk_offering.sort_key,
> >> disk_offering.bytes_read_rate, disk_offering.bytes_write_rate,
> >> disk_offering.iops_read_rate, disk_offering.iops_write_rate,
> >> disk_offering.cache_mode, disk_offering.display_offering,
> >> disk_offering.state, disk_offering.hv_ss_reserve, service_offering.cpu,
> >> service_offering.speed, service_offering.ram_size,
> >> service_offering.nw_rate, service_offering.mc_rate,
> >> service_offering.ha_enabled, service_offering.limit_cpu_use,
> >> service_offering.is_volatile, service_offering.host_tag,
> >> service_offering.default_use, service_offering.vm_type,
> >> service_offering.sort_key, service_offering.deployment_planner FROM
> >> service_offering INNER JOIN disk_offering ON service_offering.id=disk_
> >> offering.id  WHERE disk_offering.type='Service' AND
> >> disk_offering.unique_name = _binary'Cloud.Com-Small Instance'  AND
> >> disk_offering.system_use = 1 AND disk_offering.removed IS NULL :
> >> com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown
> column
> >> 'disk_offering.cache_mode' in 'field list'
> >>
> >>
> >> This is the definition of disk_offering from create-schema.sql
> >>
> >> CREATE TABLE `cloud`.`disk_offering` (
> >>`id` bigint unsigned NOT NULL auto_increment,
> >>`domain_id` bigint unsigned,
> >>`name` varchar(255) NOT NULL,
> >>`uuid` varchar(40),
> >>`display_text` varchar(4096) NULL COMMENT 'Descrianaption text set by
> >> the admin for display purpose only',
> >>`disk_size` bigint unsigned NOT NULL COMMENT 'disk space in byte',
> >>`type` varchar(32) COMMENT 'inheritted by who?',
> >>`tags` varchar(4096) COMMENT 'comma separated tags about the
> >> disk_offering',
> >>`recreatable` tinyint(1) unsigned NOT NULL DEFAULT 0 COMMENT 'The
> root
> >> disk is always recreatable',
> >>`use_local_storage` tinyint(1) unsigned NOT NULL DEFAULT 0 COMMENT
> >> 'Indicates whether local storage pools should be used',
> >>`unique_name` varchar(32) UNIQUE COMMENT 'unique name',
> >>`system_use` tinyint(1) unsigned NOT NULL DEFAULT 0 COMMENT 'is
> this
> >> offering for system used only',
> >>`customized` tinyint(1) unsigned NOT NULL DEFAULT 0 COMMENT '0
> implies
> >> not customized by default',
> >>`removed` datetime COMMENT 'date removed',
> >>`created` datetime COMMENT 'date the disk offering was created',
> >>`sort_key` int(32) NOT NULL default 0 COMMENT 'sort key used for
> >> customising sort method',
> >>PRIMARY KEY  (`id`),
> >>INDEX `i_disk_offering__removed`(`removed`),
> >>CONSTRAINT `uc_disk_offering__uuid` UNIQUE (`uuid`)
> >> ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
> >>
> >>
> >> And this is in my DB
> >>
> >> mysql> describe disk_offering;
> >> +---+-+--+-+
> >> -++
> >> | Field | Type| Null | Key | Default | Extra
> >> |
> >> +---+-+--+-+
> >> -++
> >> | id| bigint(20) unsigned | NO   | PRI | NULL|
> >> auto_increm

RE: Error while running master

2013-11-21 Thread Alex Huang
Feature freeze for 4.3 is closed.  This should go into the new db upgrade.

--Alex

> -Original Message-
> From: Wido den Hollander [mailto:w...@widodh.nl]
> Sent: Thursday, November 21, 2013 12:03 AM
> To: dev@cloudstack.apache.org
> Subject: Re: Error while running master
> 
> 
> 
> On 11/20/2013 09:37 PM, Syed Ahmed wrote:
> > Is this change going in 4.3? Is so then the Alter table I guess should
> > be in schema-421to430.sql. I don't see a schema-430to440.sql though.
> > How deploydb read the files? Does it go through all the schema files
> > or does it pick the latest one?
> >
> 
> It somehow got lost due to my own merging. I comitted it into 421to430.sql
> now, but I think this should be in 430to440.sql, but that file doesn't exist 
> yet.
> 
> The feature freeze for 4.3 is closed, right?
> 
> Wido
> 
> >
> > Thanks,
> > -Syed
> >
> >
> > On Wed 20 Nov 2013 03:24:37 PM EST, Wei ZHOU wrote:
> >> Wido committed 1edaa36cc68e845a42339d5f267d49c82343aefb today.
> >> try after "ALTER TABLE  disk_offering ADD COLUMN cache_mode
> varchar(20)"
> >> I do not know which schema file should be inserted into,
> >> schema-421to430.sql or schema-430to440.sql ?
> >>
> >> 2013/11/20 Syed Ahmed 
> >>
> >>> Hi All,
> >>>
> >>> I am facing the following error when running the latest master. I
> >>> have done a clean compile and have dropped and created the db again.
> >>>
> >>> [WARNING] Nested in
> >>> org.springframework.context.ApplicationContextException:
> >>> Failed to start bean 'cloudStackLifeCycle'; nested exception is
> >>> com.cloud.utils.exception.CloudRuntimeException: DB Exception on:
> >>> com.mysql.jdbc.JDBC4PreparedStatement@538a1556: SELECT
> >>> disk_offering.id, disk_offering.domain_id,
> >>> disk_offering.unique_name, disk_offering.name,
> >>> disk_offering.display_text, disk_offering.disk_size,
> >>> disk_offering.tags, disk_offering.type, disk_offering.removed,
> >>> disk_offering.created, disk_offering.recreatable,
> >>> disk_offering.use_local_storage, disk_offering.system_use,
> >>> disk_offering.customized, disk_offering.uuid,
> >>> disk_offering.customized_iops, disk_offering.min_iops,
> >>> disk_offering.max_iops, disk_offering.sort_key,
> >>> disk_offering.bytes_read_rate, disk_offering.bytes_write_rate,
> >>> disk_offering.iops_read_rate, disk_offering.iops_write_rate,
> >>> disk_offering.cache_mode, disk_offering.display_offering,
> >>> disk_offering.state, disk_offering.hv_ss_reserve,
> >>> service_offering.cpu, service_offering.speed,
> >>> service_offering.ram_size, service_offering.nw_rate,
> >>> service_offering.mc_rate, service_offering.ha_enabled,
> >>> service_offering.limit_cpu_use, service_offering.is_volatile,
> >>> service_offering.host_tag, service_offering.default_use,
> >>> service_offering.vm_type, service_offering.sort_key,
> >>> service_offering.deployment_planner FROM service_offering INNER
> JOIN
> >>> disk_offering ON service_offering.id=disk_ offering.id  WHERE
> disk_offering.type='Service' AND disk_offering.unique_name =
> _binary'Cloud.Com-Small Instance'  AND disk_offering.system_use = 1 AND
> disk_offering.removed IS NULL :
> >>> com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException:
> Unknown
> >>> column 'disk_offering.cache_mode' in 'field list'
> >>>
> >>>
> >>> This is the definition of disk_offering from create-schema.sql
> >>>
> >>> CREATE TABLE `cloud`.`disk_offering` (
> >>>`id` bigint unsigned NOT NULL auto_increment,
> >>>`domain_id` bigint unsigned,
> >>>`name` varchar(255) NOT NULL,
> >>>`uuid` varchar(40),
> >>>`display_text` varchar(4096) NULL COMMENT 'Descrianaption text
> >>> set by the admin for display purpose only',
> >>>`disk_size` bigint unsigned NOT NULL COMMENT 'disk space in byte',
> >>>`type` varchar(32) COMMENT 'inheritted by who?',
> >>>`tags` varchar(4096) COMMENT 'comma separated tags about the
> >>> disk_offering',
> >>>`recreatable` tinyint(1) unsigned NOT NULL DEFAULT 0 COMMENT 'The
> >>> root disk is always recreatable',
> >>>`use_local_storage` tinyint(1) unsigned NOT NULL DEFAULT 0
> >>> COMMENT 'Indicates whether local storage pools should be used',
> >>>`unique_name` varchar(32) UNIQUE COMMENT 'unique name',
> >>>`system_use` tinyint(1) unsigned NOT NULL DEFAULT 0 COMMENT 'is
> >>> this offering for system used only',
> >>>`customized` tinyint(1) unsigned NOT NULL DEFAULT 0 COMMENT '0
> >>> implies not customized by default',
> >>>`removed` datetime COMMENT 'date removed',
> >>>`created` datetime COMMENT 'date the disk offering was created',
> >>>`sort_key` int(32) NOT NULL default 0 COMMENT 'sort key used for
> >>> customising sort method',
> >>>PRIMARY KEY  (`id`),
> >>>INDEX `i_disk_offering__removed`(`removed`),
> >>>CONSTRAINT `uc_disk_offering__uuid` UNIQUE (`uuid`)
> >>> ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
> >>>
> >>>
> >>> And this is in my DB
> >>>
> >>> mysql> describe disk_offering;
> >>> +---+-

Build failed in Jenkins: build-master » Apache CloudStack Cloud Engine Orchestration Component #28

2013-11-21 Thread jenkins
See 


Changes:

[alex.huang] Replace all tabs, particularly the ones in the comments

[alex.huang] Removed trailing spaces

[alex.huang] Formatted again after all the tab expansions and eol removals

[alex.huang] Broke up some long strings

--
[INFO] 
[INFO] 
[INFO] Building Apache CloudStack Cloud Engine Orchestration Component 
4.4.0-SNAPSHOT
[INFO] 
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ 
cloud-engine-orchestration ---
[INFO] Deleting 

 (includes = [**/*], excludes = [])
[INFO] Deleting 

 (includes = [target, dist], excludes = [])
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.3:process (default) @ 
cloud-engine-orchestration ---
[INFO] 
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ 
cloud-engine-orchestration ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ 
cloud-engine-orchestration ---
[INFO] Compiling 67 source files to 

[INFO] -
[ERROR] COMPILATION ERROR : 
[INFO] -
[ERROR] 
:[3794,0]
 illegal start of expression
[ERROR] 
:[3794,2]
 illegal start of expression
[ERROR] 
:[3794,4]
 illegal start of expression
[ERROR] 
:[3794,12]
 > expected
[ERROR] 
:[3795,8]
 illegal start of expression
[ERROR] 
:[3795,14]
 ';' expected
[ERROR] 
:[3795,31]
 not a statement
[ERROR] 
:[3795,33]
 ';' expected
[ERROR] 
:[3795,35]
 not a statement
[ERROR] 
:[3795,59]
 ';' expected
[ERROR] 
:[3795,61]
 not a statement
[ERROR] 
:[3795,71]
 ';' expected
[ERROR] 
:[3795,73]
 not a statement
[ERROR] 
:[3795,91]
 ';' expected
[ERROR] 
:[3795,93]
 not a statement
[ERROR] 
:[3795,111]
 ';' expected
[ERROR] 


Re: Bump to 4.4.0

2013-11-21 Thread Wido den Hollander



On 11/21/2013 04:39 PM, Hugo Trippaers wrote:

Hey all,

Together with Wido i bumped the version of master to 4.4.0 as we now have the 
4.3 branch for 4.3.0


Yes, this was because the 4.3 branch already exists, so master should 
now be 4.4 to accomodate upgrades for new features.


Wido





Cheers from #CCCEU13 !

Hugo



need access to QA folder

2013-11-21 Thread Raja Pullela
Hi,

Can I please get me +W access to the QA folder under CWIKI.
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Home

Thanks,
Raja



Regarding w+ access to Cwiki

2013-11-21 Thread Kiran Koneti
Hi,

I used to have the write access to the cwiki earlier but somehow now the access 
is been removed .So please provide me the access so that I can add my testplans 
in the cwiki.


Regards,
Kiran.


Help In Launch instance Schedule policy

2013-11-21 Thread Yitao Jiang
Hi,

I was looking for some help in launching instance using some schedule
policies.
I know that Openstack allow developers write their own policy .So I guess
cloudstack support maybe that .Since i am just started developing it , i'll
be really appreciate someone can tell me where i can write it  using some
policy, such as according to the weight of each host, or RoundRobin.
-- 

Best regards,

Yitao Jiang


Write Access for CWIKI

2013-11-21 Thread Pavan Bandarupally
Hi,

Can you give me right access to CWIKI page. My mail id: 
pavan.bandarupa...@citrix.com  (username: 
pavanb)

Regards,
Pavan