Re: [VOTE] Apache Cloudstack 4.15.0.0 and UI [RC3]

2021-01-03 Thread li jerry
Happy New Year to all.


Sorry, I can't add RBD primary storage when I deploy with 4.15 RC3

CloudStack: 4.15 RC3

OS : Ubuntu 20.04.01

DB: MYSQL 8.0.22

CEPH: 15.2.8

libvirt:6.0.0
hypervisor: QEMU 4.2.1


Add main memory to report the following error:

2021-01-03 13:15:32,605 DEBUG [cloud.agent.Agent] (agentRequest-Handler-2:null) 
(logid:0fd66f6e) Seq 1-2968153629413867529:  { Ans: , MgmtId: 182719176, via: 
1, Ver: v1, Flags: 10, 
[{"com.cloud.agent.api.Answer":{"result":"true","details":"success","wait":"0"}}]
 }
2021-01-03 13:15:32,631 DEBUG [cloud.agent.Agent] (agentRequest-Handler-3:null) 
(logid:0fd66f6e) Request:Seq 1-2968153629413867530:  { Cmd , MgmtId: 182719176, 
via: 1, Ver: v1, Flags: 100011, 
[{"com.cloud.agent.api.ModifyStoragePoolCommand":{"add":"true","pool":{"id":"3","uuid":"d9b976cb-bcaf-320a-94e6-b337e65dd4f5","host":"10.100.250.14","path":"rbd","userInfo":"hyperx:AQAywfFf8jCiIxAAbnDBjX1QQAO9Sj22kUBh7g==","port":"0","type":"RBD"},"localPath":"/mnt//5472031c-3588-3e2c-b106-74c8d9f4ca83","wait":"0"}}]
 }
2021-01-03 13:15:32,631 DEBUG [cloud.agent.Agent] (agentRequest-Handler-3:null) 
(logid:0fd66f6e) Processing command: 
com.cloud.agent.api.ModifyStoragePoolCommand
2021-01-03 13:15:32,632 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(agentRequest-Handler-3:null) (logid:0fd66f6e) Attempting to create storage 
pool d9b976cb-bcaf-320a-94e6-b337e65dd4f5 (RBD) in libvirt
2021-01-03 13:15:32,632 DEBUG [kvm.resource.LibvirtConnection] 
(agentRequest-Handler-3:null) (logid:0fd66f6e) Looking for libvirtd connection 
at: qemu:///system
2021-01-03 13:15:32,654 WARN  [kvm.storage.LibvirtStorageAdaptor] 
(agentRequest-Handler-3:null) (logid:0fd66f6e) Storage pool 
d9b976cb-bcaf-320a-94e6-b337e65dd4f5 was not found running in libvirt. Need to 
create it.
2021-01-03 13:15:32,655 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(agentRequest-Handler-3:null) (logid:0fd66f6e) Didn't find an existing storage 
pool d9b976cb-bcaf-320a-94e6-b337e65dd4f5 by UUID, checking for pools with 
duplicate paths
2021-01-03 13:15:32,657 DEBUG [kvm.storage.LibvirtStorageAdaptor] 
(agentRequest-Handler-3:null) (logid:0fd66f6e) Checking path of existing pool 
root against pool we want to create
2021-01-03 13:15:32,667 DEBUG [kvm.storage.LibvirtStorageAdaptor] 
(agentRequest-Handler-3:null) (logid:0fd66f6e) Checking path of existing pool 
1739fc06-2a31-4af1-b8cb-871a27989f37 against pool we want to create
2021-01-03 13:15:32,672 DEBUG [kvm.storage.LibvirtStorageAdaptor] 
(agentRequest-Handler-3:null) (logid:0fd66f6e) Attempting to create storage 
pool d9b976cb-bcaf-320a-94e6-b337e65dd4f5
2021-01-03 13:15:32,686 DEBUG [kvm.storage.LibvirtStorageAdaptor] 
(agentRequest-Handler-3:null) (logid:0fd66f6e) 
d9b976cb-bcaf-320a-94e6-b337e65dd4f5

hyperx@10.100.250.14:0/rbd



2021-01-03 13:15:32,706 DEBUG [kvm.storage.LibvirtStorageAdaptor] 
(agentRequest-Handler-3:null) (logid:0fd66f6e) 
d9b976cb-bcaf-320a-94e6-b337e65dd4f5
d9b976cb-bcaf-320a-94e6-b337e65dd4f5


rbd






2021-01-03 13:15:32,759 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(agentRequest-Handler-3:null) (logid:0fd66f6e) Trying to fetch storage pool 
d9b976cb-bcaf-320a-94e6-b337e65dd4f5 from libvirt
2021-01-03 13:15:32,760 DEBUG [kvm.resource.LibvirtConnection] 
(agentRequest-Handler-3:null) (logid:0fd66f6e) Looking for libvirtd connection 
at: qemu:///system
2021-01-03 13:15:32,769 WARN  [cloud.agent.Agent] (agentRequest-Handler-3:null) 
(logid:0fd66f6e) Caught: 
java.lang.NumberFormatException: For input string: ""
at 
java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.base/java.lang.Integer.parseInt(Integer.java:662)
at java.base/java.lang.Integer.parseInt(Integer.java:770)
at 
com.cloud.hypervisor.kvm.resource.LibvirtStoragePoolXMLParser.parseStoragePoolXML(LibvirtStoragePoolXMLParser.java:58)
at 
com.cloud.hypervisor.kvm.storage.LibvirtStorageAdaptor.getStoragePoolDef(LibvirtStorageAdaptor.java:413)
at 
com.cloud.hypervisor.kvm.storage.LibvirtStorageAdaptor.getStoragePool(LibvirtStorageAdaptor.java:439)
at 
com.cloud.hypervisor.kvm.storage.LibvirtStorageAdaptor.getStoragePool(LibvirtStorageAdaptor.java:424)
at 
com.cloud.hypervisor.kvm.storage.LibvirtStorageAdaptor.createStoragePool(LibvirtStorageAdaptor.java:654)
at 
com.cloud.hypervisor.kvm.storage.KVMStoragePoolManager.createStoragePool(KVMStoragePoolManager.java:329)
at 
com.cloud.hypervisor.kvm.storage.KVMStoragePoolManager.createStoragePool(KVMStoragePoolManager.java:323)
at 
com.cloud.hypervisor.kvm.resource.wrapper.LibvirtModifyStoragePoolCommandWrapper.execute(LibvirtModifyStoragePoolCommandWrapper.java:42)
at 
com.cloud.hypervisor.kvm.resource.wrapper.LibvirtModifyStoragePoolCommandWrapper.execute(LibvirtModifyStoragePoolCommandWrapper.java:35)
at 
com.cloud.hypervisor.kvm.resource.wrapper.LibvirtRequestWrapper.execute(LibvirtRequestWrapper.java:78)
at 
c

[GitHub] [cloudstack-primate] davidjumani commented on issue #909: Missing of Add IP Range in GuestNetwork, It has in Legacy Interface

2021-01-03 Thread GitBox


davidjumani commented on issue #909:
URL: 
https://github.com/apache/cloudstack-primate/issues/909#issuecomment-753749118


   @hstan77 Do you mean this ?
   
   ![Screenshot from 2021-01-04 
09-51-46](https://user-images.githubusercontent.com/8244774/103501017-f646b780-4e72-11eb-9177-f31d1d3dd0d0.png)
   
   @rhtyd I can look into this



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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [cloudstack-primate] davidjumani opened a new pull request #910: network: Adding GuestIpRanges tab

2021-01-03 Thread GitBox


davidjumani opened a new pull request #910:
URL: https://github.com/apache/cloudstack-primate/pull/910


   Fixes https://github.com/apache/cloudstack-primate/issues/909



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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [cloudstack-primate] Pearl1594 opened a new pull request #911: Allow enabling network/vpc offering at creation

2021-01-03 Thread GitBox


Pearl1594 opened a new pull request #911:
URL: https://github.com/apache/cloudstack-primate/pull/911


   Backend PR: https://github.com/apache/cloudstack/pull/4564
   
   Additional field in Add Network Offering Form:
   
![image](https://user-images.githubusercontent.com/10495417/103502905-c3072700-4e78-11eb-929e-0e877c14e738.png)
   
   Additional field in Add VPC offering Form:
   
![image](https://user-images.githubusercontent.com/10495417/103503009-06fa2c00-4e79-11eb-9aa4-285b590cbacc.png)
   



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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [cloudstack-primate] hstan77 commented on issue #909: Missing of Add IP Range in GuestNetwork, It has in Legacy Interface

2021-01-03 Thread GitBox


hstan77 commented on issue #909:
URL: 
https://github.com/apache/cloudstack-primate/issues/909#issuecomment-753774110


   Yes, that's right .
   
   Over here, we can see the start end ip that we entered during setup network
   . Although cannot  edit, but can add new IP to it.
   
   Without this,  if there is new prefix added to the same VLAN,  admin have
   to setup another GuestNetwork,  which eventually reflect as new NIC card to
   VM
   
   Another scenario that needs this is , for eg, the prefix 90.90.90.0/24 ,
   initially allocated   start-end of 90.90.90.10 - 90.90.90.100 (for
   example), but after that need to  add additional IP  (for
   example  90.90.90.101 to 200 ), it not possible to do.
   
   
   
   
   On Mon, Jan 4, 2021 at 12:25 PM davidjumani 
   wrote:
   
   > @hstan77  Do you mean this ?
   >
   > [image: Screenshot from 2021-01-04 09-51-46]
   > 

   >
   > @rhtyd  I can look into this
   >
   > —
   > You are receiving this because you were mentioned.
   > Reply to this email directly, view it on GitHub
   > 
,
   > or unsubscribe
   > 

   > .
   >
   
   
   -- 
   Regards,
   Hean Seng
   



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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




Re: [VOTE] Apache Cloudstack 4.15.0.0 and UI [RC3]

2021-01-03 Thread Abhishek Kumar
+1

I may be late to vote but still :)
I did a fresh install test of RC3 for a VMware env:
- ACS management server on CentOS 7
- 2x ESXi 6.5 hosts
- Advanced networking zone

Performed the following tests:
- CRUD operations on templates and ISOs
- VM & volume lifecycle tests
- Live VM migration & storage migrations
- CKS lifecycle tests
- CRUD operations on offerings
- Import unmanaged instance and unmanage existing instance

I couldn't find any blockers during this.

Regards,
Abhishek



From: Daan Hoogland 
Sent: 01 January 2021 14:24
To: users 
Cc: dev 
Subject: Re: [VOTE] Apache Cloudstack 4.15.0.0 and UI [RC3]

Happy New Year to all, I think we have a release but I'll wait to tally
votes until Monday. Enjoy your weekend and the coming year.

On Thu, 31 Dec 2020, 15:10 Boris Stoyanov, 
wrote:

> +1 (binding)
>
> In shared effort with Vladimir Petrov, we've done upgrade testing from
> latest of:
> 4.11
> 4.13
> 4.14
>
> Also did a basic lifecycle operations of:
> VMs, Networks, Storage, Infra(pod, cluster, zone, hosts).
>
> And we couldn't find any stopping issues with this RC.
>
> Thanks,
> Bobby.
>
> On 24.12.20, 5:14, "Rohit Yadav"  wrote:
>
>
> All,
>
> Here are the convenience packages build from 4.15.0.0-RC3 if you don't
> want to build CloudStack from the source artifacts:
>
> Packages: (Debian, CentOS7, and CentOS8)
> http://download.cloudstack.org/testing/4.15.0.0-rc3/
>
> 4.15 systemvmtemplate:
> http://download.cloudstack.org/systemvm/4.15/
>
> Build from the master branch of
> https://github.com/apache/cloudstack-documentation (if/after voting
> passes, we'll update and publish the docs):
> http://docs.cloudstack.apache.org/en/master/upgrading/
>
> Additional notes:
>   *   The new UI is bundled within the cloudstack-management package
> and is shipped as the default UI served at /client, old UI will
> be served via /client/legacy. Most users don't need to do any
> separate installation or perform an installation step.
>   *   We've added support for CentOS8 with 4.15 but CentOS8 will EOL
> in Dec 2021 (https://wiki.centos.org/About/Product).
>
>
> Regards.
>
> 
> From: Daan Hoogland 
> Sent: Wednesday, December 23, 2020 23:13
> To: users ; dev <
> dev@cloudstack.apache.org>
> Subject: [VOTE] Apache Cloudstack 4.15.0.0 and UI [RC3]
>
> LS,
> After fixing another few blockers, we have an RC3, The changes (other
> than
> bundling) are mostly interesting for those working with templates and
> on
> vmware.
>
> We are voting for the new UI and the main code.
>
> The candidate release branch is 4.15.0.0-RC20201223T1632. The UI is
> still
> separate but as agreed upon before this will be merged in coming
> releases,
> at least from a version management point of view.
> I've created a 4.15.0.0 release candidate, with the following
> artifacts up
> for a vote:Git Branches:
> main code:
>
> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=shortlog;h=refs/heads/4.15.0.0-RC20201223T1632
> <
> https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=shortlog;h=refs/heads/4.15.0.0-RC20201214T1124
> >
> ui code:
> <
> https://git-wip-us.apache.org/repos/asf?p=cloudstack-primate.git;a=shortlog;h=refs/tags/1.0
> >
>
> https://git-wip-us.apache.org/repos/asf?p=cloudstack-primate.git;a=tag;h=refs/tags/1.0
> and Commit SH:
> main code: 01b3e361c7bb81fd1ea822faddd6594e52bb00c1
> ui code: 0593302dd53ac3203d3ab43b62d890605910f3e1
>
> Source release (checksums and signatures are available at the same
> location):
> https://dist.apache.org/repos/dist/dev/cloudstack/4.15.0.0/ (rev.
> 45059)
> PGP release keys (signed using 7975062401944786):
> https://dist.apache.org/repos/dist/release/cloudstack/KEYSVote will
> be open
> for (at least) 72 hours.For sanity in tallying the vote, can PMC
> members
> please be sure to indicate "(binding)" with their vote?[ ] +1 approve
> [ ] +0 no opinion
> [ ] -1 disapprove (and reason why)
>
> I will work with community members to provide convenience packaging
> over
> the next few days.
> The documentation repo will be updated as we move along.
>
>
>
> --
> Daan
>
> rohit.ya...@shapeblue.com
> www.shapeblue.com
> 3 London Bridge Street,  3rd floor, News Building, London  SE1 9SGUK
> @shapeblue
>
>
>
>
>
> boris.stoya...@shapeblue.com
> www.shapeblue.com
> 3 London Bridge Street,  3rd floor, News Building, London  SE1 9SGUK
> @shapeblue
>
>
>
>

abhishek.ku...@shapeblue.com 
www.shapeblue.com
3 London Bridge Street,  3rd floor, News Building, London  SE1 9SGUK
@shapeblue
  
 



Advanced zone setup

2021-01-03 Thread Support Admin

*Hello,*

I am install CT using basic zone, so all is ok and ping instance from my 
local network.


So I decide setup Advanced zone, Can I setup Advanced zone without WAN 
interface as like instance ping from my local network. Is it possible or 
not. (with vLAN or without vLAN)


Sytemvm got ip from local network but instance got ip from guest cidir 
10.0.0/24, My local network 10.66.0.0/16 so instance not ping from my 
local network.


--

*Thanks & Regards.*

Support Admin

Facebook  | Twitter 
 | Website 


116/1 West Malibagh, D. I. T Road

Dhaka-1217, Bangladesh

*Mob :* +088 01716915504

*Email :* support.ad...@technologyrss.com

*Web :* www.technologyrss.com 



Re: [VOTE] Apache Cloudstack 4.15.0.0 and UI [RC3]

2021-01-03 Thread Daan Hoogland
Jerry,
- Is this a setup that does work with a prior version?
- Did you fresh install or upgrade?
@list is there any RDB user that can advise on the missing configuration
causing the NumberFormatException, please?


On Sun, Jan 3, 2021 at 1:25 PM li jerry  wrote:

> Happy New Year to all.
>
>
> Sorry, I can't add RBD primary storage when I deploy with 4.15 RC3
>
> CloudStack: 4.15 RC3
>
> OS : Ubuntu 20.04.01
>
> DB: MYSQL 8.0.22
>
> CEPH: 15.2.8
>
> libvirt:6.0.0
> hypervisor: QEMU 4.2.1
>
>
> Add main memory to report the following error:
>
> 2021-01-03 13:15:32,605 DEBUG [cloud.agent.Agent]
> (agentRequest-Handler-2:null) (logid:0fd66f6e) Seq 1-2968153629413867529:
> { Ans: , MgmtId: 182719176, via: 1, Ver: v1, Flags: 10,
> [{"com.cloud.agent.api.Answer":{"result":"true","details":"success","wait":"0"}}]
> }
> 2021-01-03 13:15:32,631 DEBUG [cloud.agent.Agent]
> (agentRequest-Handler-3:null) (logid:0fd66f6e) Request:Seq
> 1-2968153629413867530:  { Cmd , MgmtId: 182719176, via: 1, Ver: v1, Flags:
> 100011,
> [{"com.cloud.agent.api.ModifyStoragePoolCommand":{"add":"true","pool":{"id":"3","uuid":"d9b976cb-bcaf-320a-94e6-b337e65dd4f5","host":"10.100.250.14","path":"rbd","userInfo":"hyperx:AQAywfFf8jCiIxAAbnDBjX1QQAO9Sj22kUBh7g==","port":"0","type":"RBD"},"localPath":"/mnt//5472031c-3588-3e2c-b106-74c8d9f4ca83","wait":"0"}}]
> }
> 2021-01-03 13:15:32,631 DEBUG [cloud.agent.Agent]
> (agentRequest-Handler-3:null) (logid:0fd66f6e) Processing command:
> com.cloud.agent.api.ModifyStoragePoolCommand
> 2021-01-03 13:15:32,632 INFO  [kvm.storage.LibvirtStorageAdaptor]
> (agentRequest-Handler-3:null) (logid:0fd66f6e) Attempting to create storage
> pool d9b976cb-bcaf-320a-94e6-b337e65dd4f5 (RBD) in libvirt
> 2021-01-03 13:15:32,632 DEBUG [kvm.resource.LibvirtConnection]
> (agentRequest-Handler-3:null) (logid:0fd66f6e) Looking for libvirtd
> connection at: qemu:///system
> 2021-01-03 13:15:32,654 WARN  [kvm.storage.LibvirtStorageAdaptor]
> (agentRequest-Handler-3:null) (logid:0fd66f6e) Storage pool
> d9b976cb-bcaf-320a-94e6-b337e65dd4f5 was not found running in libvirt. Need
> to create it.
> 2021-01-03 13:15:32,655 INFO  [kvm.storage.LibvirtStorageAdaptor]
> (agentRequest-Handler-3:null) (logid:0fd66f6e) Didn't find an existing
> storage pool d9b976cb-bcaf-320a-94e6-b337e65dd4f5 by UUID, checking for
> pools with duplicate paths
> 2021-01-03 13:15:32,657 DEBUG [kvm.storage.LibvirtStorageAdaptor]
> (agentRequest-Handler-3:null) (logid:0fd66f6e) Checking path of existing
> pool root against pool we want to create
> 2021-01-03 13:15:32,667 DEBUG [kvm.storage.LibvirtStorageAdaptor]
> (agentRequest-Handler-3:null) (logid:0fd66f6e) Checking path of existing
> pool 1739fc06-2a31-4af1-b8cb-871a27989f37 against pool we want to create
> 2021-01-03 13:15:32,672 DEBUG [kvm.storage.LibvirtStorageAdaptor]
> (agentRequest-Handler-3:null) (logid:0fd66f6e) Attempting to create storage
> pool d9b976cb-bcaf-320a-94e6-b337e65dd4f5
> 2021-01-03 13:15:32,686 DEBUG [kvm.storage.LibvirtStorageAdaptor]
> (agentRequest-Handler-3:null) (logid:0fd66f6e)  private='no'>
> d9b976cb-bcaf-320a-94e6-b337e65dd4f5
> 
> hyperx@10.100.250.14:0/rbd
> 
> 
>
> 2021-01-03 13:15:32,706 DEBUG [kvm.storage.LibvirtStorageAdaptor]
> (agentRequest-Handler-3:null) (logid:0fd66f6e) 
> d9b976cb-bcaf-320a-94e6-b337e65dd4f5
> d9b976cb-bcaf-320a-94e6-b337e65dd4f5
> 
> 
> rbd
> 
> 
> 
> 
> 
>
> 2021-01-03 13:15:32,759 INFO  [kvm.storage.LibvirtStorageAdaptor]
> (agentRequest-Handler-3:null) (logid:0fd66f6e) Trying to fetch storage pool
> d9b976cb-bcaf-320a-94e6-b337e65dd4f5 from libvirt
> 2021-01-03 13:15:32,760 DEBUG [kvm.resource.LibvirtConnection]
> (agentRequest-Handler-3:null) (logid:0fd66f6e) Looking for libvirtd
> connection at: qemu:///system
> 2021-01-03 13:15:32,769 WARN  [cloud.agent.Agent]
> (agentRequest-Handler-3:null) (logid:0fd66f6e) Caught:
> java.lang.NumberFormatException: For input string: ""
> at
> java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
> at java.base/java.lang.Integer.parseInt(Integer.java:662)
> at java.base/java.lang.Integer.parseInt(Integer.java:770)
> at
> com.cloud.hypervisor.kvm.resource.LibvirtStoragePoolXMLParser.parseStoragePoolXML(LibvirtStoragePoolXMLParser.java:58)
> at
> com.cloud.hypervisor.kvm.storage.LibvirtStorageAdaptor.getStoragePoolDef(LibvirtStorageAdaptor.java:413)
> at
> com.cloud.hypervisor.kvm.storage.LibvirtStorageAdaptor.getStoragePool(LibvirtStorageAdaptor.java:439)
> at
> com.cloud.hypervisor.kvm.storage.LibvirtStorageAdaptor.getStoragePool(LibvirtStorageAdaptor.java:424)
> at
> com.cloud.hypervisor.kvm.storage.LibvirtStorageAdaptor.createStoragePool(LibvirtStorageAdaptor.java:654)
> at
> com.cloud.hypervisor.kvm.storage.KVMStoragePoolManager.createStoragePool(KVMStoragePoolManager.java:329)
> at
> com.cloud.hypervisor.kvm.storage.KVMStoragePoolManager.createStoragePool(KVMStoragePoolManager.java

回复: [VOTE] Apache Cloudstack 4.15.0.0 and UI [RC3]

2021-01-03 Thread li jerry
- Is this a setup that does work with a prior version?
- Did you fresh install or upgrade?

No, This is a new deployment, there are no upgrades

I have changed two methods. At present, RBD storage is running

/cloud-plugin-hypervisor-kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtStoragePoolXMLParser.java
//String _xmlPort = Integer.parseInt(getAttrValue("host", 
"port", source));
int port = 0;
String _xmlPort = getAttrValue("host", "port", source);
if ( ! _xmlPort.isEmpty()) {
port = Integer.parseInt(_xmlPort);
}



/cloud-plugin-hypervisor-kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtDomainXMLParser.java
//int port = Integer.parseInt(getAttrValue("host", "port", 
disk));
int port = 0;
String _xmlPort = getAttrValue("host", "port", disk);
if ( ! _xmlPort.isEmpty()) {
port = Integer.parseInt(_xmlPort);
}


-Jerry

发件人: Daan Hoogland
发送时间: 2021年1月4日 14:41
收件人: users
抄送: dev
主题: Re: [VOTE] Apache Cloudstack 4.15.0.0 and UI [RC3]

Jerry,
- Is this a setup that does work with a prior version?
- Did you fresh install or upgrade?
@list is there any RDB user that can advise on the missing configuration
causing the NumberFormatException, please?


On Sun, Jan 3, 2021 at 1:25 PM li jerry  wrote:

> Happy New Year to all.
>
>
> Sorry, I can't add RBD primary storage when I deploy with 4.15 RC3
>
> CloudStack: 4.15 RC3
>
> OS : Ubuntu 20.04.01
>
> DB: MYSQL 8.0.22
>
> CEPH: 15.2.8
>
> libvirt:6.0.0
> hypervisor: QEMU 4.2.1
>
>
> Add main memory to report the following error:
>
> 2021-01-03 13:15:32,605 DEBUG [cloud.agent.Agent]
> (agentRequest-Handler-2:null) (logid:0fd66f6e) Seq 1-2968153629413867529:
> { Ans: , MgmtId: 182719176, via: 1, Ver: v1, Flags: 10,
> [{"com.cloud.agent.api.Answer":{"result":"true","details":"success","wait":"0"}}]
> }
> 2021-01-03 13:15:32,631 DEBUG [cloud.agent.Agent]
> (agentRequest-Handler-3:null) (logid:0fd66f6e) Request:Seq
> 1-2968153629413867530:  { Cmd , MgmtId: 182719176, via: 1, Ver: v1, Flags:
> 100011,
> [{"com.cloud.agent.api.ModifyStoragePoolCommand":{"add":"true","pool":{"id":"3","uuid":"d9b976cb-bcaf-320a-94e6-b337e65dd4f5","host":"10.100.250.14","path":"rbd","userInfo":"hyperx:AQAywfFf8jCiIxAAbnDBjX1QQAO9Sj22kUBh7g==","port":"0","type":"RBD"},"localPath":"/mnt//5472031c-3588-3e2c-b106-74c8d9f4ca83","wait":"0"}}]
> }
> 2021-01-03 13:15:32,631 DEBUG [cloud.agent.Agent]
> (agentRequest-Handler-3:null) (logid:0fd66f6e) Processing command:
> com.cloud.agent.api.ModifyStoragePoolCommand
> 2021-01-03 13:15:32,632 INFO  [kvm.storage.LibvirtStorageAdaptor]
> (agentRequest-Handler-3:null) (logid:0fd66f6e) Attempting to create storage
> pool d9b976cb-bcaf-320a-94e6-b337e65dd4f5 (RBD) in libvirt
> 2021-01-03 13:15:32,632 DEBUG [kvm.resource.LibvirtConnection]
> (agentRequest-Handler-3:null) (logid:0fd66f6e) Looking for libvirtd
> connection at: qemu:///system
> 2021-01-03 13:15:32,654 WARN  [kvm.storage.LibvirtStorageAdaptor]
> (agentRequest-Handler-3:null) (logid:0fd66f6e) Storage pool
> d9b976cb-bcaf-320a-94e6-b337e65dd4f5 was not found running in libvirt. Need
> to create it.
> 2021-01-03 13:15:32,655 INFO  [kvm.storage.LibvirtStorageAdaptor]
> (agentRequest-Handler-3:null) (logid:0fd66f6e) Didn't find an existing
> storage pool d9b976cb-bcaf-320a-94e6-b337e65dd4f5 by UUID, checking for
> pools with duplicate paths
> 2021-01-03 13:15:32,657 DEBUG [kvm.storage.LibvirtStorageAdaptor]
> (agentRequest-Handler-3:null) (logid:0fd66f6e) Checking path of existing
> pool root against pool we want to create
> 2021-01-03 13:15:32,667 DEBUG [kvm.storage.LibvirtStorageAdaptor]
> (agentRequest-Handler-3:null) (logid:0fd66f6e) Checking path of existing
> pool 1739fc06-2a31-4af1-b8cb-871a27989f37 against pool we want to create
> 2021-01-03 13:15:32,672 DEBUG [kvm.storage.LibvirtStorageAdaptor]
> (agentRequest-Handler-3:null) (logid:0fd66f6e) Attempting to create storage
> pool d9b976cb-bcaf-320a-94e6-b337e65dd4f5
> 2021-01-03 13:15:32,686 DEBUG [kvm.storage.LibvirtStorageAdaptor]
> (agentRequest-Handler-3:null) (logid:0fd66f6e)  private='no'>
> d9b976cb-bcaf-320a-94e6-b337e65dd4f5
> 
> hyperx@10.100.250.14:0/rbd
> 
> 
>
> 2021-01-03 13:15:32,706 DEBUG [kvm.storage.LibvirtStorageAdaptor]
> (agentRequest-Handler-3:null) (logid:0fd66f6e) 
> d9b976cb-bcaf-320a-94e6-b337e65dd4f5
> d9b976cb-bcaf-320a-94e6-b337e65dd4f5
> 
> 
> rbd
> 
> 
> 
> 
> 
>
> 2021-01-03 13:15:32,759 INFO  [kvm.storage.LibvirtStorageAdaptor]
> (agentRequest-Handler-3:null) (logid:0fd66f6e) Trying to fetch storage pool
> d9b976cb-bcaf-320a-94e6-b337e65dd4f5 from libvirt
> 2021-01-03 13:15:32,760 DEBUG [kvm.resource.LibvirtConnection]
> (agentRequest-Handler-3:null) (logid:0fd66f6e) Looking f

Re: [VOTE] Apache Cloudstack 4.15.0.0 and UI [RC3]

2021-01-03 Thread Daan Hoogland
looks good Jerry,
Are you making a PR? It seems to me that this would not be a blocker and
should go in future releases. Please argue against me if you disagree.

On Mon, Jan 4, 2021 at 6:48 AM li jerry  wrote:

> - Is this a setup that does work with a prior version?
> - Did you fresh install or upgrade?
>
> No, This is a new deployment, there are no upgrades
>
> I have changed two methods. At present, RBD storage is running
>
>
> /cloud-plugin-hypervisor-kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtStoragePoolXMLParser.java
> //String _xmlPort = Integer.parseInt(getAttrValue("host",
> "port", source));
> int port = 0;
> String _xmlPort = getAttrValue("host", "port", source);
> if ( ! _xmlPort.isEmpty()) {
> port = Integer.parseInt(_xmlPort);
> }
>
>
>
>
> /cloud-plugin-hypervisor-kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtDomainXMLParser.java
> //int port = Integer.parseInt(getAttrValue("host",
> "port", disk));
> int port = 0;
> String _xmlPort = getAttrValue("host", "port", disk);
> if ( ! _xmlPort.isEmpty()) {
> port = Integer.parseInt(_xmlPort);
> }
>
>
> -Jerry
>
> 发件人: Daan Hoogland
> 发送时间: 2021年1月4日 14:41
> 收件人: users
> 抄送: dev
> 主题: Re: [VOTE] Apache Cloudstack 4.15.0.0 and UI [RC3]
>
> Jerry,
> - Is this a setup that does work with a prior version?
> - Did you fresh install or upgrade?
> @list is there any RDB user that can advise on the missing configuration
> causing the NumberFormatException, please?
>
>
> On Sun, Jan 3, 2021 at 1:25 PM li jerry  wrote:
>
> > Happy New Year to all.
> >
> >
> > Sorry, I can't add RBD primary storage when I deploy with 4.15 RC3
> >
> > CloudStack: 4.15 RC3
> >
> > OS : Ubuntu 20.04.01
> >
> > DB: MYSQL 8.0.22
> >
> > CEPH: 15.2.8
> >
> > libvirt:6.0.0
> > hypervisor: QEMU 4.2.1
> >
> >
> > Add main memory to report the following error:
> >
> > 2021-01-03 13:15:32,605 DEBUG [cloud.agent.Agent]
> > (agentRequest-Handler-2:null) (logid:0fd66f6e) Seq 1-2968153629413867529:
> > { Ans: , MgmtId: 182719176, via: 1, Ver: v1, Flags: 10,
> >
> [{"com.cloud.agent.api.Answer":{"result":"true","details":"success","wait":"0"}}]
> > }
> > 2021-01-03 13:15:32,631 DEBUG [cloud.agent.Agent]
> > (agentRequest-Handler-3:null) (logid:0fd66f6e) Request:Seq
> > 1-2968153629413867530:  { Cmd , MgmtId: 182719176, via: 1, Ver: v1,
> Flags:
> > 100011,
> >
> [{"com.cloud.agent.api.ModifyStoragePoolCommand":{"add":"true","pool":{"id":"3","uuid":"d9b976cb-bcaf-320a-94e6-b337e65dd4f5","host":"10.100.250.14","path":"rbd","userInfo":"hyperx:AQAywfFf8jCiIxAAbnDBjX1QQAO9Sj22kUBh7g==","port":"0","type":"RBD"},"localPath":"/mnt//5472031c-3588-3e2c-b106-74c8d9f4ca83","wait":"0"}}]
> > }
> > 2021-01-03 13:15:32,631 DEBUG [cloud.agent.Agent]
> > (agentRequest-Handler-3:null) (logid:0fd66f6e) Processing command:
> > com.cloud.agent.api.ModifyStoragePoolCommand
> > 2021-01-03 13:15:32,632 INFO  [kvm.storage.LibvirtStorageAdaptor]
> > (agentRequest-Handler-3:null) (logid:0fd66f6e) Attempting to create
> storage
> > pool d9b976cb-bcaf-320a-94e6-b337e65dd4f5 (RBD) in libvirt
> > 2021-01-03 13:15:32,632 DEBUG [kvm.resource.LibvirtConnection]
> > (agentRequest-Handler-3:null) (logid:0fd66f6e) Looking for libvirtd
> > connection at: qemu:///system
> > 2021-01-03 13:15:32,654 WARN  [kvm.storage.LibvirtStorageAdaptor]
> > (agentRequest-Handler-3:null) (logid:0fd66f6e) Storage pool
> > d9b976cb-bcaf-320a-94e6-b337e65dd4f5 was not found running in libvirt.
> Need
> > to create it.
> > 2021-01-03 13:15:32,655 INFO  [kvm.storage.LibvirtStorageAdaptor]
> > (agentRequest-Handler-3:null) (logid:0fd66f6e) Didn't find an existing
> > storage pool d9b976cb-bcaf-320a-94e6-b337e65dd4f5 by UUID, checking for
> > pools with duplicate paths
> > 2021-01-03 13:15:32,657 DEBUG [kvm.storage.LibvirtStorageAdaptor]
> > (agentRequest-Handler-3:null) (logid:0fd66f6e) Checking path of existing
> > pool root against pool we want to create
> > 2021-01-03 13:15:32,667 DEBUG [kvm.storage.LibvirtStorageAdaptor]
> > (agentRequest-Handler-3:null) (logid:0fd66f6e) Checking path of existing
> > pool 1739fc06-2a31-4af1-b8cb-871a27989f37 against pool we want to create
> > 2021-01-03 13:15:32,672 DEBUG [kvm.storage.LibvirtStorageAdaptor]
> > (agentRequest-Handler-3:null) (logid:0fd66f6e) Attempting to create
> storage
> > pool d9b976cb-bcaf-320a-94e6-b337e65dd4f5
> > 2021-01-03 13:15:32,686 DEBUG [kvm.storage.LibvirtStorageAdaptor]
> > (agentRequest-Handler-3:null) (logid:0fd66f6e)  > private='no'>
> > d9b976cb-bcaf-320a-94e6-b337e65dd4f5
> > 
> > hyperx@10.100.250.14:0/rbd
> > 
> > 
> >
> > 2021-01-03 13:15:32,706 DEBUG [kvm.storage.LibvirtStorageAdaptor]
> > (agentRequest-Handler-3:null) (logid:0f

Re: [VOTE] Apache Cloudstack 4.15.0.0 and UI [RC3]

2021-01-03 Thread Rohit Yadav
Hi Jerry,

I've tested 4.15RC3 by creating and adding a new ceph storage pool (ceph 
version 15.2.7 (88e41c6c49beb18add4fdb6b4326ca466d931db8) octopus (stable)) 
using both legacy and new UI and it seems to work okay, the only problem could 
be if you accidentally give a wrong secret in which case you may need to 
manually ssh into kvm hosts and undefine the secret.

In my test, it worked as expected and I suspect it perhaps didn't work for you 
since you didn't specify the monitor port (for the rados monitor input I gave 
it host:port, ex. 192.168.1.10:6789), this was the form/get data from the URL 
request as seen in the browser (both legacy and new UI): (notice the port 6789)


  1.
command:
createStoragePool
  2.
response:
json
  3.
scope:
zone
  4.
zoneid:
a67e1466-45dc-495b-a6c3-4bea6a072769
  5.
name:
ceph-test
  6.
provider:
DefaultPrimary
  7.
hypervisor:
KVM
  8.
url:
rbd://cephtest:AQC3u_JfhipzGBAACiILEFKembN8gTJsIvu6nQ==@192.168.1.10:6789/cephtest
  9.
tags:
rbd


Since I was able to add a storage pool by specifying the explicit rados monitor 
port, it does not look like a blocker (or at least we can document this). I 
think the change you are suggesting is to pick a default port when nothing is 
specified, looking forward to your PR.


Regards.


From: li jerry 
Sent: Monday, January 4, 2021 12:18
To: us...@cloudstack.apache.org 
Cc: dev 
Subject: 回复: [VOTE] Apache Cloudstack 4.15.0.0 and UI [RC3]

- Is this a setup that does work with a prior version?
- Did you fresh install or upgrade?

No, This is a new deployment, there are no upgrades

I have changed two methods. At present, RBD storage is running

/cloud-plugin-hypervisor-kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtStoragePoolXMLParser.java
//String _xmlPort = Integer.parseInt(getAttrValue("host", 
"port", source));
int port = 0;
String _xmlPort = getAttrValue("host", "port", source);
if ( ! _xmlPort.isEmpty()) {
port = Integer.parseInt(_xmlPort);
}



/cloud-plugin-hypervisor-kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtDomainXMLParser.java
//int port = Integer.parseInt(getAttrValue("host", "port", 
disk));
int port = 0;
String _xmlPort = getAttrValue("host", "port", disk);
if ( ! _xmlPort.isEmpty()) {
port = Integer.parseInt(_xmlPort);
}


-Jerry

发件人: Daan Hoogland
发送时间: 2021年1月4日 14:41
收件人: users
抄送: dev
主题: Re: [VOTE] Apache Cloudstack 4.15.0.0 and UI [RC3]

Jerry,
- Is this a setup that does work with a prior version?
- Did you fresh install or upgrade?
@list is there any RDB user that can advise on the missing configuration
causing the NumberFormatException, please?



rohit.ya...@shapeblue.com 
www.shapeblue.com
3 London Bridge Street,  3rd floor, News Building, London  SE1 9SGUK
@shapeblue
  
 

On Sun, Jan 3, 2021 at 1:25 PM li jerry  wrote:

> Happy New Year to all.
>
>
> Sorry, I can't add RBD primary storage when I deploy with 4.15 RC3
>
> CloudStack: 4.15 RC3
>
> OS : Ubuntu 20.04.01
>
> DB: MYSQL 8.0.22
>
> CEPH: 15.2.8
>
> libvirt:6.0.0
> hypervisor: QEMU 4.2.1
>
>
> Add main memory to report the following error:
>
> 2021-01-03 13:15:32,605 DEBUG [cloud.agent.Agent]
> (agentRequest-Handler-2:null) (logid:0fd66f6e) Seq 1-2968153629413867529:
> { Ans: , MgmtId: 182719176, via: 1, Ver: v1, Flags: 10,
> [{"com.cloud.agent.api.Answer":{"result":"true","details":"success","wait":"0"}}]
> }
> 2021-01-03 13:15:32,631 DEBUG [cloud.agent.Agent]
> (agentRequest-Handler-3:null) (logid:0fd66f6e) Request:Seq
> 1-2968153629413867530:  { Cmd , MgmtId: 182719176, via: 1, Ver: v1, Flags:
> 100011,
> [{"com.cloud.agent.api.ModifyStoragePoolCommand":{"add":"true","pool":{"id":"3","uuid":"d9b976cb-bcaf-320a-94e6-b337e65dd4f5","host":"10.100.250.14","path":"rbd","userInfo":"hyperx:AQAywfFf8jCiIxAAbnDBjX1QQAO9Sj22kUBh7g==","port":"0","type":"RBD"},"localPath":"/mnt//5472031c-3588-3e2c-b106-74c8d9f4ca83","wait":"0"}}]
> }
> 2021-01-03 13:15:32,631 DEBUG [cloud.agent.Agent]
> (agentRequest-Handler-3:null) (logid:0fd66f6e) Processing command:
> com.cloud.agent.api.ModifyStoragePoolCommand
> 2021-01-03 13:15:32,632 INFO  [kvm.storage.LibvirtStorageAdaptor]
> (agentRequest-Handler-3:null) (logid:0fd66f6e) Attempting to create storage
> pool d9b976cb-bcaf-320a-94e6-b337e65dd4f5 (RBD) in libvirt
> 2021-01-03 13:15:32,632 DEBUG [kvm.resource.LibvirtConnection]
> (agentRequest-Handler-3:null) (logid:0fd66f6e) Looking for libvirtd
> connection at: qemu:///system
> 2021-01-03 13:15:32,654 WARN  [kvm.storage.LibvirtStorageAdaptor]
> (agentRequest-Handler-3:null) (logid:0fd66f6e) Storage pool
> d9b976cb-bcaf-320a-94e6-b337e65dd4f5 was not found running in libvirt. Need
> to create 

回复: [VOTE] Apache Cloudstack 4.15.0.0 and UI [RC3]

2021-01-03 Thread li jerry
I'm creating PR to fix this.

I think we should block, because it will cause the RBD primary storage to be 
unable to be added.

-邮件原件-
发件人: Daan Hoogland 
发送时间: 2021年1月4日 14:57
收件人: users 
抄送: dev 
主题: Re: [VOTE] Apache Cloudstack 4.15.0.0 and UI [RC3]

looks good Jerry,
Are you making a PR? It seems to me that this would not be a blocker and should 
go in future releases. Please argue against me if you disagree.

On Mon, Jan 4, 2021 at 6:48 AM li jerry  wrote:

> - Is this a setup that does work with a prior version?
> - Did you fresh install or upgrade?
>
> No, This is a new deployment, there are no upgrades
>
> I have changed two methods. At present, RBD storage is running
>
>
> /cloud-plugin-hypervisor-kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtStoragePoolXMLParser.java
> //String _xmlPort = Integer.parseInt(getAttrValue("host",
> "port", source));
> int port = 0;
> String _xmlPort = getAttrValue("host", "port", source);
> if ( ! _xmlPort.isEmpty()) {
> port = Integer.parseInt(_xmlPort);
> }
>
>
>
>
> /cloud-plugin-hypervisor-kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtDomainXMLParser.java
> //int port = Integer.parseInt(getAttrValue("host",
> "port", disk));
> int port = 0;
> String _xmlPort = getAttrValue("host", "port", disk);
> if ( ! _xmlPort.isEmpty()) {
> port = Integer.parseInt(_xmlPort);
> }
>
>
> -Jerry
>
> 发件人: Daan Hoogland
> 发送时间: 2021年1月4日 14:41
> 收件人: users
> 抄送: dev
> 主题: Re: [VOTE] Apache Cloudstack 4.15.0.0 and UI [RC3]
>
> Jerry,
> - Is this a setup that does work with a prior version?
> - Did you fresh install or upgrade?
> @list is there any RDB user that can advise on the missing
> configuration causing the NumberFormatException, please?
>
>
> On Sun, Jan 3, 2021 at 1:25 PM li jerry  wrote:
>
> > Happy New Year to all.
> >
> >
> > Sorry, I can't add RBD primary storage when I deploy with 4.15 RC3
> >
> > CloudStack: 4.15 RC3
> >
> > OS : Ubuntu 20.04.01
> >
> > DB: MYSQL 8.0.22
> >
> > CEPH: 15.2.8
> >
> > libvirt:6.0.0
> > hypervisor: QEMU 4.2.1
> >
> >
> > Add main memory to report the following error:
> >
> > 2021-01-03 13:15:32,605 DEBUG [cloud.agent.Agent]
> > (agentRequest-Handler-2:null) (logid:0fd66f6e) Seq 1-2968153629413867529:
> > { Ans: , MgmtId: 182719176, via: 1, Ver: v1, Flags: 10,
> >
> [{"com.cloud.agent.api.Answer":{"result":"true","details":"success","w
> ait":"0"}}]
> > }
> > 2021-01-03 13:15:32,631 DEBUG [cloud.agent.Agent]
> > (agentRequest-Handler-3:null) (logid:0fd66f6e) Request:Seq
> > 1-2968153629413867530:  { Cmd , MgmtId: 182719176, via: 1, Ver: v1,
> Flags:
> > 100011,
> >
> [{"com.cloud.agent.api.ModifyStoragePoolCommand":{"add":"true","pool":
> {"id":"3","uuid":"d9b976cb-bcaf-320a-94e6-b337e65dd4f5","host":"10.100
> .250.14","path":"rbd","userInfo":"hyperx:AQAywfFf8jCiIxAAbnDBjX1QQAO9S
> j22kUBh7g==","port":"0","type":"RBD"},"localPath":"/mnt//5472031c-3588
> -3e2c-b106-74c8d9f4ca83","wait":"0"}}]
> > }
> > 2021-01-03 13:15:32,631 DEBUG [cloud.agent.Agent]
> > (agentRequest-Handler-3:null) (logid:0fd66f6e) Processing command:
> > com.cloud.agent.api.ModifyStoragePoolCommand
> > 2021-01-03 13:15:32,632 INFO  [kvm.storage.LibvirtStorageAdaptor]
> > (agentRequest-Handler-3:null) (logid:0fd66f6e) Attempting to create
> storage
> > pool d9b976cb-bcaf-320a-94e6-b337e65dd4f5 (RBD) in libvirt
> > 2021-01-03 13:15:32,632 DEBUG [kvm.resource.LibvirtConnection]
> > (agentRequest-Handler-3:null) (logid:0fd66f6e) Looking for libvirtd
> > connection at: qemu:///system
> > 2021-01-03 13:15:32,654 WARN  [kvm.storage.LibvirtStorageAdaptor]
> > (agentRequest-Handler-3:null) (logid:0fd66f6e) Storage pool
> > d9b976cb-bcaf-320a-94e6-b337e65dd4f5 was not found running in libvirt.
> Need
> > to create it.
> > 2021-01-03 13:15:32,655 INFO  [kvm.storage.LibvirtStorageAdaptor]
> > (agentRequest-Handler-3:null) (logid:0fd66f6e) Didn't find an
> > existing storage pool d9b976cb-bcaf-320a-94e6-b337e65dd4f5 by UUID,
> > checking for pools with duplicate paths
> > 2021-01-03 13:15:32,657 DEBUG [kvm.storage.LibvirtStorageAdaptor]
> > (agentRequest-Handler-3:null) (logid:0fd66f6e) Checking path of
> > existing pool root against pool we want to create
> > 2021-01-03 13:15:32,667 DEBUG [kvm.storage.LibvirtStorageAdaptor]
> > (agentRequest-Handler-3:null) (logid:0fd66f6e) Checking path of
> > existing pool 1739fc06-2a31-4af1-b8cb-871a27989f37 against pool we
> > want to create
> > 2021-01-03 13:15:32,672 DEBUG [kvm.storage.LibvirtStorageAdaptor]
> > (agentRequest-Handler-3:null) (logid:0fd66f6e) Attempting to create
> storage
> > pool d9b976cb-bcaf-320a-94e6-b337e65dd4f5
> > 2021-01-03 13:15:32,686 DEBUG [kvm.storage.LibvirtStora

[GitHub] [cloudstack-primate] rhtyd commented on issue #909: Missing of Add IP Range in GuestNetwork, It has in Legacy Interface

2021-01-03 Thread GitBox


rhtyd commented on issue #909:
URL: 
https://github.com/apache/cloudstack-primate/issues/909#issuecomment-753807269


   Thanks for explaining @hstan77 this looks like security groups only feature 
that isn't supported in new UI, you can use legacy UI or API for the use-case 
until we address this. Since this is infra-related feature accessible only to 
the root admin it may not be considered a blocker cc @DaanHoogland (you agree?)
   
   @davidjumani since you've already started a PR, let me give you some 
pointers -- for SG the guest network is uses the public network, where the IP 
range is consumed directly by the end VMs than a virtual network; we probably 
want to add a tab in the guest networks (SG guest networks only) which are 
treated as shared network with vlan ip/ranges. This tab should list the range 
with pagination, for ex:
   ```
   command: listVlanIpRanges
   zoneid: f4bca7d3-81ce-4bfe-9c50-56acf057844b
   networkid: 8932951f-4ea2-49e2-9c83-65c16ef4fd04
   page: 1
   pagesize: 20
   response: json
   ``` 
   On top of the tab we can give a button to open a modal/form that takes input 
to create new range, for example: (note, the parameter forVirtualNetwork is 
`false`)
   ```
   command: createVlanIpRange
   forVirtualNetwork: false
   networkid: 8932951f-4ea2-49e2-9c83-65c16ef4fd04
   gateway: 192.168.1.1
   netmask: 255.255.255.0
   startip: 192.168.1.100
   endip: 192.168.1.200
   response: json
   ```



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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [cloudstack-primate] rhtyd edited a comment on issue #909: Missing of Add IP Range in GuestNetwork, It has in Legacy Interface

2021-01-03 Thread GitBox


rhtyd edited a comment on issue #909:
URL: 
https://github.com/apache/cloudstack-primate/issues/909#issuecomment-753807269


   Thanks for explaining @hstan77 this looks like security groups only feature 
that isn't supported in new UI, you can use legacy UI or API for the use-case 
until we address this. Since this is infra-related feature accessible only to 
the root admin it may not be considered a blocker cc @DaanHoogland (you agree?)
   
   @davidjumani since you've already started a PR, let me give you some 
pointers -- for SG the guest network is uses the public network, where the IP 
range is consumed directly by the end VMs than a virtual network; we probably 
want to add a tab in the guest networks (SG guest networks only) which are 
treated as shared network with vlan ip/ranges. This tab should list the range 
with pagination, for ex:
   ```
   command: listVlanIpRanges
   zoneid: f4bca7d3-81ce-4bfe-9c50-56acf057844b
   networkid: 8932951f-4ea2-49e2-9c83-65c16ef4fd04
   page: 1
   pagesize: 20
   response: json
   ``` 
   On top of the tab we can give a button to open a modal/form that takes input 
to create new range, for example: (note, the parameter forVirtualNetwork is 
`false`)
   ```
   command: createVlanIpRange
   forVirtualNetwork: false
   networkid: 8932951f-4ea2-49e2-9c83-65c16ef4fd04
   gateway: 192.168.1.1
   netmask: 255.255.255.0
   startip: 192.168.1.100
   endip: 192.168.1.200
   response: json
   ```
   @davidjumani the tab should check if the APIs are available to the logged-in 
user/account (createVlanIpRange and listVlanIpRanges)



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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [cloudstack-primate] sureshanaparti commented on issue #904: [BUG] Wrong info shown for "Network Rate" label in Compute Offering

2021-01-03 Thread GitBox


sureshanaparti commented on issue #904:
URL: 
https://github.com/apache/cloudstack-primate/issues/904#issuecomment-753808163


   Verified.
   
   https://user-images.githubusercontent.com/12028987/103511279-bd1b4100-4e8c-11eb-9070-e0576b079012.png";>
   



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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [cloudstack-primate] sureshanaparti closed issue #904: [BUG] Wrong info shown for "Network Rate" label in Compute Offering

2021-01-03 Thread GitBox


sureshanaparti closed issue #904:
URL: https://github.com/apache/cloudstack-primate/issues/904


   



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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




Re: [VOTE] Apache Cloudstack 4.15.0.0 and UI [RC3]

2021-01-03 Thread Rohit Yadav
Hi Jerry,

Can you see my reply? I'm able to add a RBD primary storage if I specify the 
port, should we still consider it a blocker then?


Regards.


From: li jerry 
Sent: Monday, January 4, 2021 12:52
To: us...@cloudstack.apache.org 
Cc: dev 
Subject: 回复: [VOTE] Apache Cloudstack 4.15.0.0 and UI [RC3]

I'm creating PR to fix this.

I think we should block, because it will cause the RBD primary storage to be 
unable to be added.

-邮件原件-
发件人: Daan Hoogland 
发送时间: 2021年1月4日 14:57
收件人: users 
抄送: dev 
主题: Re: [VOTE] Apache Cloudstack 4.15.0.0 and UI [RC3]

looks good Jerry,
Are you making a PR? It seems to me that this would not be a blocker and should 
go in future releases. Please argue against me if you disagree.


rohit.ya...@shapeblue.com 
www.shapeblue.com
3 London Bridge Street,  3rd floor, News Building, London  SE1 9SGUK
@shapeblue
  
 

On Mon, Jan 4, 2021 at 6:48 AM li jerry  wrote:

> - Is this a setup that does work with a prior version?
> - Did you fresh install or upgrade?
>
> No, This is a new deployment, there are no upgrades
>
> I have changed two methods. At present, RBD storage is running
>
>
> /cloud-plugin-hypervisor-kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtStoragePoolXMLParser.java
> //String _xmlPort = Integer.parseInt(getAttrValue("host",
> "port", source));
> int port = 0;
> String _xmlPort = getAttrValue("host", "port", source);
> if ( ! _xmlPort.isEmpty()) {
> port = Integer.parseInt(_xmlPort);
> }
>
>
>
>
> /cloud-plugin-hypervisor-kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtDomainXMLParser.java
> //int port = Integer.parseInt(getAttrValue("host",
> "port", disk));
> int port = 0;
> String _xmlPort = getAttrValue("host", "port", disk);
> if ( ! _xmlPort.isEmpty()) {
> port = Integer.parseInt(_xmlPort);
> }
>
>
> -Jerry
>
> 发件人: Daan Hoogland
> 发送时间: 2021年1月4日 14:41
> 收件人: users
> 抄送: dev
> 主题: Re: [VOTE] Apache Cloudstack 4.15.0.0 and UI [RC3]
>
> Jerry,
> - Is this a setup that does work with a prior version?
> - Did you fresh install or upgrade?
> @list is there any RDB user that can advise on the missing
> configuration causing the NumberFormatException, please?
>
>
> On Sun, Jan 3, 2021 at 1:25 PM li jerry  wrote:
>
> > Happy New Year to all.
> >
> >
> > Sorry, I can't add RBD primary storage when I deploy with 4.15 RC3
> >
> > CloudStack: 4.15 RC3
> >
> > OS : Ubuntu 20.04.01
> >
> > DB: MYSQL 8.0.22
> >
> > CEPH: 15.2.8
> >
> > libvirt:6.0.0
> > hypervisor: QEMU 4.2.1
> >
> >
> > Add main memory to report the following error:
> >
> > 2021-01-03 13:15:32,605 DEBUG [cloud.agent.Agent]
> > (agentRequest-Handler-2:null) (logid:0fd66f6e) Seq 1-2968153629413867529:
> > { Ans: , MgmtId: 182719176, via: 1, Ver: v1, Flags: 10,
> >
> [{"com.cloud.agent.api.Answer":{"result":"true","details":"success","w
> ait":"0"}}]
> > }
> > 2021-01-03 13:15:32,631 DEBUG [cloud.agent.Agent]
> > (agentRequest-Handler-3:null) (logid:0fd66f6e) Request:Seq
> > 1-2968153629413867530:  { Cmd , MgmtId: 182719176, via: 1, Ver: v1,
> Flags:
> > 100011,
> >
> [{"com.cloud.agent.api.ModifyStoragePoolCommand":{"add":"true","pool":
> {"id":"3","uuid":"d9b976cb-bcaf-320a-94e6-b337e65dd4f5","host":"10.100
> .250.14","path":"rbd","userInfo":"hyperx:AQAywfFf8jCiIxAAbnDBjX1QQAO9S
> j22kUBh7g==","port":"0","type":"RBD"},"localPath":"/mnt//5472031c-3588
> -3e2c-b106-74c8d9f4ca83","wait":"0"}}]
> > }
> > 2021-01-03 13:15:32,631 DEBUG [cloud.agent.Agent]
> > (agentRequest-Handler-3:null) (logid:0fd66f6e) Processing command:
> > com.cloud.agent.api.ModifyStoragePoolCommand
> > 2021-01-03 13:15:32,632 INFO  [kvm.storage.LibvirtStorageAdaptor]
> > (agentRequest-Handler-3:null) (logid:0fd66f6e) Attempting to create
> storage
> > pool d9b976cb-bcaf-320a-94e6-b337e65dd4f5 (RBD) in libvirt
> > 2021-01-03 13:15:32,632 DEBUG [kvm.resource.LibvirtConnection]
> > (agentRequest-Handler-3:null) (logid:0fd66f6e) Looking for libvirtd
> > connection at: qemu:///system
> > 2021-01-03 13:15:32,654 WARN  [kvm.storage.LibvirtStorageAdaptor]
> > (agentRequest-Handler-3:null) (logid:0fd66f6e) Storage pool
> > d9b976cb-bcaf-320a-94e6-b337e65dd4f5 was not found running in libvirt.
> Need
> > to create it.
> > 2021-01-03 13:15:32,655 INFO  [kvm.storage.LibvirtStorageAdaptor]
> > (agentRequest-Handler-3:null) (logid:0fd66f6e) Didn't find an
> > existing storage pool d9b976cb-bcaf-320a-94e6-b337e65dd4f5 by UUID,
> > checking for pools with duplicate paths
> > 2021-01-03 13:15:32,657 DEBUG [kvm.storage.LibvirtStorageAdaptor]
> > (agentRequest-Handler-3:null) (logid:0fd66f6e) Checking path of
> > existing pool root against pool we want to create
> > 2021-01-03

Re: [VOTE] Apache Cloudstack 4.15.0.0 and UI [RC3]

2021-01-03 Thread Daan Hoogland
Thanks for the PR Jerry,
Can you try Rohit's way. He seems to provide a way, making this not a
blocker.

On Mon, Jan 4, 2021 at 7:22 AM li jerry  wrote:

> I'm creating PR to fix this.
>
> I think we should block, because it will cause the RBD primary storage to
> be unable to be added.
>
> -邮件原件-
> 发件人: Daan Hoogland 
> 发送时间: 2021年1月4日 14:57
> 收件人: users 
> 抄送: dev 
> 主题: Re: [VOTE] Apache Cloudstack 4.15.0.0 and UI [RC3]
>
> looks good Jerry,
> Are you making a PR? It seems to me that this would not be a blocker and
> should go in future releases. Please argue against me if you disagree.
>
> On Mon, Jan 4, 2021 at 6:48 AM li jerry  wrote:
>
> > - Is this a setup that does work with a prior version?
> > - Did you fresh install or upgrade?
> >
> > No, This is a new deployment, there are no upgrades
> >
> > I have changed two methods. At present, RBD storage is running
> >
> >
> >
> /cloud-plugin-hypervisor-kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtStoragePoolXMLParser.java
> > //String _xmlPort = Integer.parseInt(getAttrValue("host",
> > "port", source));
> > int port = 0;
> > String _xmlPort = getAttrValue("host", "port", source);
> > if ( ! _xmlPort.isEmpty()) {
> > port = Integer.parseInt(_xmlPort);
> > }
> >
> >
> >
> >
> >
> /cloud-plugin-hypervisor-kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtDomainXMLParser.java
> > //int port = Integer.parseInt(getAttrValue("host",
> > "port", disk));
> > int port = 0;
> > String _xmlPort = getAttrValue("host", "port", disk);
> > if ( ! _xmlPort.isEmpty()) {
> > port = Integer.parseInt(_xmlPort);
> > }
> >
> >
> > -Jerry
> >
> > 发件人: Daan Hoogland
> > 发送时间: 2021年1月4日 14:41
> > 收件人: users
> > 抄送: dev
> > 主题: Re: [VOTE] Apache Cloudstack 4.15.0.0 and UI [RC3]
> >
> > Jerry,
> > - Is this a setup that does work with a prior version?
> > - Did you fresh install or upgrade?
> > @list is there any RDB user that can advise on the missing
> > configuration causing the NumberFormatException, please?
> >
> >
> > On Sun, Jan 3, 2021 at 1:25 PM li jerry  wrote:
> >
> > > Happy New Year to all.
> > >
> > >
> > > Sorry, I can't add RBD primary storage when I deploy with 4.15 RC3
> > >
> > > CloudStack: 4.15 RC3
> > >
> > > OS : Ubuntu 20.04.01
> > >
> > > DB: MYSQL 8.0.22
> > >
> > > CEPH: 15.2.8
> > >
> > > libvirt:6.0.0
> > > hypervisor: QEMU 4.2.1
> > >
> > >
> > > Add main memory to report the following error:
> > >
> > > 2021-01-03 13:15:32,605 DEBUG [cloud.agent.Agent]
> > > (agentRequest-Handler-2:null) (logid:0fd66f6e) Seq
> 1-2968153629413867529:
> > > { Ans: , MgmtId: 182719176, via: 1, Ver: v1, Flags: 10,
> > >
> > [{"com.cloud.agent.api.Answer":{"result":"true","details":"success","w
> > ait":"0"}}]
> > > }
> > > 2021-01-03 13:15:32,631 DEBUG [cloud.agent.Agent]
> > > (agentRequest-Handler-3:null) (logid:0fd66f6e) Request:Seq
> > > 1-2968153629413867530:  { Cmd , MgmtId: 182719176, via: 1, Ver: v1,
> > Flags:
> > > 100011,
> > >
> > [{"com.cloud.agent.api.ModifyStoragePoolCommand":{"add":"true","pool":
> > {"id":"3","uuid":"d9b976cb-bcaf-320a-94e6-b337e65dd4f5","host":"10.100
> > .250.14","path":"rbd","userInfo":"hyperx:AQAywfFf8jCiIxAAbnDBjX1QQAO9S
> > j22kUBh7g==","port":"0","type":"RBD"},"localPath":"/mnt//5472031c-3588
> > -3e2c-b106-74c8d9f4ca83","wait":"0"}}]
> > > }
> > > 2021-01-03 13:15:32,631 DEBUG [cloud.agent.Agent]
> > > (agentRequest-Handler-3:null) (logid:0fd66f6e) Processing command:
> > > com.cloud.agent.api.ModifyStoragePoolCommand
> > > 2021-01-03 13:15:32,632 INFO  [kvm.storage.LibvirtStorageAdaptor]
> > > (agentRequest-Handler-3:null) (logid:0fd66f6e) Attempting to create
> > storage
> > > pool d9b976cb-bcaf-320a-94e6-b337e65dd4f5 (RBD) in libvirt
> > > 2021-01-03 13:15:32,632 DEBUG [kvm.resource.LibvirtConnection]
> > > (agentRequest-Handler-3:null) (logid:0fd66f6e) Looking for libvirtd
> > > connection at: qemu:///system
> > > 2021-01-03 13:15:32,654 WARN  [kvm.storage.LibvirtStorageAdaptor]
> > > (agentRequest-Handler-3:null) (logid:0fd66f6e) Storage pool
> > > d9b976cb-bcaf-320a-94e6-b337e65dd4f5 was not found running in libvirt.
> > Need
> > > to create it.
> > > 2021-01-03 13:15:32,655 INFO  [kvm.storage.LibvirtStorageAdaptor]
> > > (agentRequest-Handler-3:null) (logid:0fd66f6e) Didn't find an
> > > existing storage pool d9b976cb-bcaf-320a-94e6-b337e65dd4f5 by UUID,
> > > checking for pools with duplicate paths
> > > 2021-01-03 13:15:32,657 DEBUG [kvm.storage.LibvirtStorageAdaptor]
> > > (agentRequest-Handler-3:null) (logid:0fd66f6e) Checking path of
> > > existing pool root against pool we want to create
> > > 2021-01-03 13:15:32,667 DEBUG [kvm.storage.LibvirtStorageAdaptor]
> > > (age

[GitHub] [cloudstack-primate] rhtyd edited a comment on issue #909: Missing of Add IP Range in GuestNetwork, It has in Legacy Interface

2021-01-03 Thread GitBox


rhtyd edited a comment on issue #909:
URL: 
https://github.com/apache/cloudstack-primate/issues/909#issuecomment-753807269


   Thanks for explaining @hstan77 this looks like security groups only feature 
that isn't supported in new UI, you can use legacy UI or API for the use-case 
until we address this. Since this is infra-related feature accessible only to 
the root admin it may not be considered a blocker cc @DaanHoogland (you agree?)
   
   @davidjumani since you've already started a PR, let me give you some 
pointers -- for SG the guest network uses the public IPs, where the IP range is 
consumed directly by the end VMs than a virtual network; we probably want to 
add a tab in the guest networks (SG guest networks only) which are treated as 
shared network with vlan ip/ranges. This tab should list the range with 
pagination, for ex:
   ```
   command: listVlanIpRanges
   zoneid: f4bca7d3-81ce-4bfe-9c50-56acf057844b
   networkid: 8932951f-4ea2-49e2-9c83-65c16ef4fd04
   page: 1
   pagesize: 20
   response: json
   ``` 
   On top of the tab we can give a button to open a modal/form that takes input 
to create new range, for example: (note, the parameter forVirtualNetwork is 
`false`)
   ```
   command: createVlanIpRange
   forVirtualNetwork: false
   networkid: 8932951f-4ea2-49e2-9c83-65c16ef4fd04
   gateway: 192.168.1.1
   netmask: 255.255.255.0
   startip: 192.168.1.100
   endip: 192.168.1.200
   response: json
   ```
   @davidjumani the tab should check if the APIs are available to the logged-in 
user/account (createVlanIpRange and listVlanIpRanges)



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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




回复: [VOTE] Apache Cloudstack 4.15.0.0 and UI [RC3]

2021-01-03 Thread li jerry
Hi Rohit

Yes, I didn't specify a port when I added primary storage;

After r failed, I checked with virsh and found that the pool had been created 
successfully, and the capacity, allocation and available of RBD could be 
displayed.
So I'm sure it's not the wrong key.


Please note that:
In the output pool dump, I see that there is no port target under host
But the code gets port and converts it to int

String port = Integer.parseInt(getAttrValue("host", "port", source));



virsh pool-dumpxml d9b976cb-bcaf-320a-94e6-b337e65dd4f5

d9b976cb-bcaf-320a-94e6-b337e65dd4f5
d9b976cb-bcaf-320a-94e6-b337e65dd4f5
12122373201920
912457728
11998204379136


rbd






-Jerry

发件人: Rohit Yadav
发送时间: 2021年1月4日 15:32
收件人: us...@cloudstack.apache.org; 
dev@cloudstack.apache.org
主题: Re: [VOTE] Apache Cloudstack 4.15.0.0 and UI [RC3]

Hi Jerry,

Can you see my reply? I'm able to add a RBD primary storage if I specify the 
port, should we still consider it a blocker then?


Regards.


From: li jerry 
Sent: Monday, January 4, 2021 12:52
To: us...@cloudstack.apache.org 
Cc: dev 
Subject: 回复: [VOTE] Apache Cloudstack 4.15.0.0 and UI [RC3]

I'm creating PR to fix this.

I think we should block, because it will cause the RBD primary storage to be 
unable to be added.

-邮件原件-
发件人: Daan Hoogland 
发送时间: 2021年1月4日 14:57
收件人: users 
抄送: dev 
主题: Re: [VOTE] Apache Cloudstack 4.15.0.0 and UI [RC3]

looks good Jerry,
Are you making a PR? It seems to me that this would not be a blocker and should 
go in future releases. Please argue against me if you disagree.


rohit.ya...@shapeblue.com
www.shapeblue.com
3 London Bridge Street,  3rd floor, News Building, London  SE1 9SGUK
@shapeblue



On Mon, Jan 4, 2021 at 6:48 AM li jerry  wrote:

> - Is this a setup that does work with a prior version?
> - Did you fresh install or upgrade?
>
> No, This is a new deployment, there are no upgrades
>
> I have changed two methods. At present, RBD storage is running
>
>
> /cloud-plugin-hypervisor-kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtStoragePoolXMLParser.java
> //String _xmlPort = Integer.parseInt(getAttrValue("host",
> "port", source));
> int port = 0;
> String _xmlPort = getAttrValue("host", "port", source);
> if ( ! _xmlPort.isEmpty()) {
> port = Integer.parseInt(_xmlPort);
> }
>
>
>
>
> /cloud-plugin-hypervisor-kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtDomainXMLParser.java
> //int port = Integer.parseInt(getAttrValue("host",
> "port", disk));
> int port = 0;
> String _xmlPort = getAttrValue("host", "port", disk);
> if ( ! _xmlPort.isEmpty()) {
> port = Integer.parseInt(_xmlPort);
> }
>
>
> -Jerry
>
> 发件人: Daan Hoogland
> 发送时间: 2021年1月4日 14:41
> 收件人: users
> 抄送: dev
> 主题: Re: [VOTE] Apache Cloudstack 4.15.0.0 and UI [RC3]
>
> Jerry,
> - Is this a setup that does work with a prior version?
> - Did you fresh install or upgrade?
> @list is there any RDB user that can advise on the missing
> configuration causing the NumberFormatException, please?
>
>
> On Sun, Jan 3, 2021 at 1:25 PM li jerry  wrote:
>
> > Happy New Year to all.
> >
> >
> > Sorry, I can't add RBD primary storage when I deploy with 4.15 RC3
> >
> > CloudStack: 4.15 RC3
> >
> > OS : Ubuntu 20.04.01
> >
> > DB: MYSQL 8.0.22
> >
> > CEPH: 15.2.8
> >
> > libvirt:6.0.0
> > hypervisor: QEMU 4.2.1
> >
> >
> > Add main memory to report the following error:
> >
> > 2021-01-03 13:15:32,605 DEBUG [cloud.agent.Agent]
> > (agentRequest-Handler-2:null) (logid:0fd66f6e) Seq 1-2968153629413867529:
> > { Ans: , MgmtId: 182719176, via: 1, Ver: v1, Flags: 10,
> >
> [{"com.cloud.agent.api.Answer":{"result":"true","details":"success","w
> ait":"0"}}]
> > }
> > 2021-01-03 13:15:32,631 DEBUG [cloud.agent.Agent]
> > (agentRequest-Handler-3:null) (logid:0fd66f6e) Request:Seq
> > 1-2968153629413867530:  { Cmd , MgmtId: 182719176, via: 1, Ver: v1,
> Flags:
> > 100011,
> >
> [{"com.cloud.agent.api.ModifyStoragePoolCommand":{"add":"true","pool":
> {"id":"3","uuid":"d9b976cb-bcaf-320a-94e6-b337e65dd4f5","host":"10.100
> .250.14","path":"rbd","userInfo":"hyperx:AQAywfFf8jCiIxAAbnDBjX1QQAO9S
> j22kUBh7g==","port":"0","type":"RBD"},"localPath":"/mnt//5472031c-3588
> -3e2c-b106-74c8d9f4ca83","wait":"0"}}]
> > }
> > 2021-01-03 13:15:32,631 DEBUG [cloud.agent.Agent]
> > (agentRequest-Handler-3:null) (logid:0fd66f6e) Processing command:
> > com.cloud.agent.api.ModifyStoragePoolCommand
> > 2021-01-03 13:15:32,632 INFO  [kvm.storage.LibvirtStorageAdaptor]
> > (agentRequest-Handler-3:null) (logid:0fd66f6e) Attem