Pearl1594 commented on issue #5936:
URL: https://github.com/apache/cloudstack/issues/5936#issuecomment-1032364828


   @tampler I tried deploying an env with your image, and the logs indicate 
that the management server is running. However the service isn't running on 
port 8080, but I was able to reach it via port 8096. I noticed the Dockerfile 
in the container, it's slightly different from the upstream one..  
   
   ```
   $ docker exec -it  sim-tampler /bin/bash
   root@e0cece3025f5:~# ps -aef
   UID          PID    PPID  C STIME TTY          TIME CMD
   root           1       0  0 08:31 ?        00:00:01 /usr/bin/python3 
/usr/bin/supervisord
   root          10       1 22 08:31 ?        00:04:06 
/usr/lib/jvm/java-11-openjdk-amd64/bin/java -classpath 
/opt/apache-maven-3.8.4/boot/plexus-classworlds-2.6.0.jar 
-Dclassworlds.conf=/opt/apache-maven-3
   root          12       1  0 08:31 ?        00:00:00 /bin/sh 
/usr/bin/mysqld_safe
   mysql        198      12  3 08:31 ?        00:00:41 /usr/sbin/mysqld 
--basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/mysql/plugin 
--user=mysql --log-error=/var/log/mysql/error.log --pid-fil
   root        2660       0  1 08:49 pts/0    00:00:00 /bin/bash
   root        2672    2660  0 08:49 pts/0    00:00:00 ps -aef
   root@e0cece3025f5:~# 
   root@e0cece3025f5:~# 
   
   
   root@e0cece3025f5:~# curl localhost:8096?command=listZones
   <?xml version="1.0" encoding="UTF-8"?><listzonesresponse 
cloud-stack-version="4.16.1.0-SNAPSHOT"><count>1</count><zone><id>f2e6d1c8-fb62-47fd-846e-126f16095e8c</id><name>Sandbox-simulator</name><dns1>10.147.28.6</dns1><internaldns1>10.147.28.6</internaldns1><guestcidraddress>10.1.1.0/24</guestcidraddress><networktype>Advanced</networktype><securitygroupsenabled>false</securitygroupsenabled><allocationstate>Enabled</allocationstate><zonetoken>a26b0b9f-4a09-3016-8d3f-5a0bff27311b</zonetoken><dhcpprovider>VirtualRouter</dhcpprovider><localstorageenabled>false</localstorageenabled><hasannotations>false</hasannotations></zone></listzonesresponse>root@e0cece3025f5:~#
 
   
   
   ```
   
   following is the output of the same on an image built locally from the 4.16 
branch:
   ```
   [14:25:22] pearl@pearl-XPS-15-7590:~$ docker ps 
   CONTAINER ID   IMAGE                         COMMAND                  
CREATED          STATUS          PORTS                                          
                      NAMES
   e0cece3025f5   tampler/acs-sim:lat           "/usr/bin/supervisord"   23 
minutes ago   Up 23 minutes   8080-8085/tcp, 8096/tcp, 0.0.0.0:8081->5050/tcp, 
:::8081->5050/tcp   sim-tampler
   a3e0173ad5fe   cloudstack/simulator:latest   "/usr/bin/supervisord"   25 
minutes ago   Up 25 minutes   8080/tcp, 8096/tcp, 0.0.0.0:8080->5050/tcp, 
:::8080->5050/tcp        sim1
   
   [14:25:24] pearl@pearl-XPS-15-7590:~$ docker image ls
   REPOSITORY                                                TAG       IMAGE ID 
      CREATED         SIZE
   cloudstack/simulator                                      latest    
1a80778b0bb7   2 hours ago     3.95GB
   tampler/acs-sim                                           lat       
ac458281e7ef   39 hours ago    3.43GB
   
   pearl@pearl-XPS-15-7590:~$ docker exec -it sim1 /bin/bash
   root@a3e0173ad5fe:~# ps -aef
   UID          PID    PPID  C STIME TTY          TIME CMD
   root           1       0  0 08:30 ?        00:00:02 /usr/bin/python3 
/usr/bin/supervisord
   root           8       1 16 08:30 ?        00:04:11 /usr/bin/java -classpath 
/usr/share/maven/boot/plexus-classworlds-2.x.jar 
-Dclassworlds.conf=/usr/share/maven/bin/m2.conf -Dmaven.home=/usr/share/maven
   root           9       1  0 08:30 ?        00:00:00 npm
   root          10       1  0 08:30 ?        00:00:00 /bin/sh 
/usr/bin/mysqld_safe
   mysql        205      10  2 08:30 ?        00:00:35 /usr/sbin/mysqld 
--basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/mysql/plugin 
--user=mysql --log-error=/var/log/mysql/error.log --pid-fil
   root         210       9  0 08:30 ?        00:00:00 sh -c vue-cli-service 
lint --no-fix && vue-cli-service serve
   root         302     210 11 08:30 ?        00:02:58 node 
/root/ui/node_modules/.bin/vue-cli-service serve
   root         618       0  0 08:56 pts/0    00:00:00 /bin/bash
   root         631     618  0 08:56 pts/0    00:00:00 ps -aef
   
   root@a3e0173ad5fe:~# curl localhost:5050
   <!--
        Licensed to the Apache Software Foundation (ASF) under one
        or more contributor license agreements.  See the NOTICE file
        distributed with this work for additional information
        regarding copyright ownership.  The ASF licenses this file
        to you under the Apache License, Version 2.0 (the
        "License"); you may not use this file except in compliance
        with the License.  You may obtain a copy of the License at
   
        http://www.apache.org/licenses/LICENSE-2.0
   
        Unless required by applicable law or agreed to in writing,
        software distributed under the License is distributed on an
   .....
   
   
   
   ```


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to