Cloudstack launch instance error when trying to assign storage - apache-cloudstack

I installed Cloudstack 4.11.2.0 on Ubuntu 16.04
This is my environment:
1 Zone
1 Pod
2 Clusters (LXC and KVM)
2 Hosts (one in each cluster)
i can launch perfectly VMs on the KVM cluster but when i'm trying to launch a new instance with an LXC template i'm getting that the instance couldn't be deployed
I already have configured the secondary and primary storage on the environment. And when the instance is been deployed i see it gets allocated CPU and RAM from the LXC host. The issue is when the storage allocation process is been made, it can't find any storage pool. This problem isn't happening when i launch a new instance in the KVM cluster
I attach here the log of the process.
2019-06-12 09:02:45,500 DEBUG [o.a.c.s.a.LocalStoragePoolAllocator] (API-Job-Executor-26:ctx-9fa50775 job-67 ctx-624410ca) (logid:8eddb393) LocalStoragePoolAllocator trying to find storage pool to fit the vm
2019-06-12 09:02:45,500 DEBUG [o.a.c.s.a.ClusterScopeStoragePoolAllocator] (API-Job-Executor-26:ctx-9fa50775 job-67 ctx-624410ca) (logid:8eddb393) ClusterScopeStoragePoolAllocator looking for storage pool
2019-06-12 09:02:45,500 DEBUG [o.a.c.s.a.ClusterScopeStoragePoolAllocator] (API-Job-Executor-26:ctx-9fa50775 job-67 ctx-624410ca) (logid:8eddb393) Looking for pools in dc: 1 pod:1 cluster:2. Disabled pools will be ignored.
2019-06-12 09:02:45,500 DEBUG [o.a.c.s.a.ClusterScopeStoragePoolAllocator] (API-Job-Executor-26:ctx-9fa50775 job-67 ctx-624410ca) (logid:8eddb393) Found pools matching tags: []
2019-06-12 09:02:45,501 DEBUG [o.a.c.s.a.ClusterScopeStoragePoolAllocator] (API-Job-Executor-26:ctx-9fa50775 job-67 ctx-624410ca) (logid:8eddb393) No storage pools available for shared volume allocation, returning
2019-06-12 09:02:45,501 DEBUG [o.a.c.s.a.ZoneWideStoragePoolAllocator] (API-Job-Executor-26:ctx-9fa50775 job-67 ctx-624410ca) (logid:8eddb393) ZoneWideStoragePoolAllocator to find storage pool
2019-06-12 09:02:45,503 DEBUG [c.c.d.DeploymentPlanningManagerImpl] (API-Job-Executor-26:ctx-9fa50775 job-67 ctx-624410ca) (logid:8eddb393) No suitable pools found for volume: Vol[24|vm=14|ROOT] under cluster: 2
2019-06-12 09:02:45,503 DEBUG [c.c.d.DeploymentPlanningManagerImpl] (API-Job-Executor-26:ctx-9fa50775 job-67 ctx-624410ca) (logid:8eddb393) No suitable pools found
2019-06-12 09:02:45,503 DEBUG [c.c.d.DeploymentPlanningManagerImpl] (API-Job-Executor-26:ctx-9fa50775 job-67 ctx-624410ca) (logid:8eddb393) No suitable storagePools found under this Cluster: 2
This is the instance creation related content on the cloudstack-management.log

how do you have your storage pools configured? per cluster or zone-wide?
if it's per cluster you may not have pools on the lxc cluster.

Related

Access impossible to newly setup EJBCA PKI

I have just finished installing ejbca community edition on top of wildfly.
The EJBCA server is a VM in the azure cloud.
everything went fine during build : Build successful for every 3 steps of deployment.
- ant deployear
- ant runinstall
- ant deploy-keystore)
Versions :
Wildfly 18.0
EJBCA 7.4.3.2
Ant 1.10.10
Mysql Ver 15.1 Distrib 10.3.27-MariaDB
JDBC connector : mariadb 2.7.3
Debian 10 buster
However i am unable to reach the destination
https://<public ip address>:8443/ejbca/
Error message :
The connection has timed out
The server at <my public ip #> is taking too long to respond.
So, started checking the different ports open :
**remote** nmap scan from my local vm to the remote EJBCA VM :
nmap -Pn8080,22,8442,8443,9990,3306 52.188.59.103
Host is up (0.037s latency).
Not shown: 995 filtered ports
PORT STATE SERVICE
21/tcp open ftp
80/tcp open http
443/tcp open https
554/tcp open rtsp
1723/tcp open pptp
Nmap done: 1 IP address (1 host up) scanned in 5.62 seconds
On the EJBCA VM a local port scan shows that port 8443 and 8080 are open :
rDNS record for 127.0.0.1: localhost
Not shown: 996 closed ports
PORT STATE SERVICE
22/tcp open ssh
3306/tcp open mysql
8080/tcp open http-proxy
8443/tcp open https-alt
Azure connectivity tests from my ip to EJBCA host is OK for every ports tested.
however, online Port check says ports 8443 and 8442 are closed
https://portchecker.co/
So i don't know which test to trust ?
I tried disabling both my local firewall and my proxy but it didn't make any difference.
I did a tcpdump on the EJBCA server whilst trying to access ejbca url : but nothing was displayed.
What am i missing here ?
What other tests can i perform?
EDIT :
serverlog: (errors and warnings )
web admin error:
2021-06-14 13:00:07,332 ERROR [org.jboss.as.jsf] (MSC service thread 1-2) WFLYJSF0002: Could not load JSF managed bean class: org.ejbca.ui.web.admin.peerconnector.PeerConnectorsMBean
2021-06-14 13:00:07,433 ERROR [org.jboss.as.jsf] (MSC service thread 1-2) WFLYJSF0002: Could not load JSF managed bean class: org.ejbca.ui.web.admin.peerconnector.PeerConnectorMBean
Deprecated lib:
2021-06-14 13:00:14,598 WARN [org.jboss.weld.Bootstrap] (MSC service thread 1-4) WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class com.sun.faces.flow.FlowDiscoveryCDIHelper is deprecated from CDI 1.1!
Severe errors :
2021-06-14 13:00:15,967 SEVERE [javax.enterprise.resource.webcontainer.jsf.flow] (MSC service thread 1-4) Unable to obtain CDI 1.1 utilities for Mojarra
2021-06-14 13:00:15,971 SEVERE [javax.enterprise.resource.webcontainer.jsf.application.view] (MSC service thread 1-4) Unable to obtain CDI 1.1 utilities for Mojarra
Warnings:
2021-06-14 13:00:16,770 INFO [org.ejbca.core.ejb.StartupSingletonBean] (ServerService Thread Pool -- 94) Init, EJBCA 7.4.3.2 Community (67479006a69140e81d66e39871bed8255362effc) startup.
2021-06-14 13:00:16,780 WARN [io.undertow.servlet] (ServerService Thread Pool -- 66) UT015020: Path /* is secured for some HTTP methods, however it is not secured for [HEAD, POST, GET]
2021-06-14 13:00:16,780 WARN [io.undertow.servlet] (ServerService Thread Pool -- 73) UT015020: Path /* is secured for some HTTP methods [...]
During startup WildFly should log something like the following, so you can verify that WildFly is configured to listen on ports for all IPs.
16:58:12,890 INFO [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0006: Undertow HTTPS listener httpspriv listening on 0.0.0.0:8443
16:58:12,920 INFO [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0006: Undertow HTTPS listener httpspub listening on 0.0.0.0:8442
You can also try connecting to port 8442, to check that the problem is not that you don't have the client certificate in your browser.

Large delay between Artifactory started and deployment finished on Tomcat

We currently have Artifactory running on a Digital Ocean Droplet under Tomcat
Artifactory starts nice and quickly, but the deployment doesn't actually complete until it's done, I can't work out how to get any further information out from either the Artifactory Deployment or the Tomcat Server
2017-01-11 13:18:20,707 [art-init] [INFO ]
(o.a.w.s.ArtifactoryContextConfigListener:219) -
###########################################################
### Artifactory successfully started (14.442 seconds) ###
###########################################################
From the catalina.log
11-Jan-2017 13:18:00.921 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying configuration descriptor /opt/jfrog/artifactory/tomcat/conf/Catalina/localhost/artifactory.xml
11-Jan-2017 13:35:28.086 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of configuration descriptor /opt/jfrog/artifactory/tomcat/conf/Catalina/localhost/artifactory.xml has finished in 1,047,164 ms
I'm confused as to what's going on between 13:18:20 and 13:25:28, Artifactory doesn't have a forum anymore and directs everyone here.

Problems with launching VM in openstack

I am trying to launch an instance in Openstack.
Instance : SecurityOnion.iso
Flavor : 14 GB RAM
Root disk : 20 GB
vCPUS: 5
Host RAM: 20 GB
Host OS: Centos7
When the xUBUNTU security Onion console shows up after I launch the instance on the dashboard, I am unable to work smoothly. The response time is very high, hence facing an issue with the speed. Any suggestions on how to speed it up? What could be the possible factors?

nova-scheduler don`t rpc.cast to nova-compute, no errors, but vm in 'scheduling' state

OpenStack Juno + OpenContrail. Ubuntu 14.04.2 LTS. 2 node setup: control+compute.
Everything worked well.
Delete and reinstall compute node.
Now when starting new vm its stuck in 'scheduling' state.
No errors in logs.
With debug I see how nova-scheduler doing filtering and now should
pass rpc.cast to nova-compute.
nova-compute shows nothing in debug.
p.s. rabbit is ok, I see many control connections and 3 connections from compute node.
If you exec nova list, are you see network interfaces of the new vm?

Fedora 17 - Not able to restart my network service

I am using fedora 17. Whenever i try to restart my network service using sudo /etc/init.d/network restart i get the following error. (NetworkManager enabled and disabled properly) -->
Restarting network (via systemctl): Job failed. See system journal and 'systemctl status' for details.
[FAILED]
how i can successfully restart my network service ?

Resources