Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools/docker: Upgrade to ubuntu 20.04 , MySQL 8 and python3 #5507

Merged
merged 3 commits into from Sep 24, 2021

Conversation

weizhouapache
Copy link
Member

Description

This PR upgrades cloudstack simulator to Ubuntu 20.04, MySQL 8 and python3, launches cloudstack UI at port 5050.

README.md is updated accordingly.

fixes #4891

How to test it

cd tools/docker 
docker build -f Dockerfile -t cloudstack/simulator ../..
docker run --name simulator -p 8080:5050 -d cloudstack/simulator
docker exec -it simulator python /root/tools/marvin/marvin/deployDataCenter.py -i /root/setup/dev/advanced.cfg

# Open your browser at http://localhost:8080/

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

@rohityadavcloud
Copy link
Member

Didn't test it manually, I think we can merge if Wei can confirm how/if he has tested this.

Copy link
Contributor

@Pearl1594 Pearl1594 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested it locally - works fine - http://localhost:8080 opens the onboarding UI page (haven't setup the zone)
image

@rohityadavcloud
Copy link
Member

cc As Wei advised @tampler maybe try these changes (git cherry-pick) in your private branch and see if it fixes your issue.

@synergiator
Copy link

synergiator commented May 16, 2022

as of today, I was able to build and run a container with the 4.17 snashot (latest master as of Mai 16th 2022) and logon to UI. Would be great to see fresh images on Docker Hub!

@synergiator
Copy link

build from tag 4.16.1 advanced configuration does not work

docker exec -it simulator python /root/tools/marvin/marvin/deployDataCenter.py -i /root/setup/dev/advanced.cfg
=== TestClient Creation Failed===

``

@weizhouapache
Copy link
Member Author

@synergiator
I will check it

@weizhouapache
Copy link
Member Author

@synergiator
I have built a docker image from cloudstack 4.16.1.0 and uploaded to my owner docker hub:
https://hub.docker.com/repository/docker/ustcweizhou/cloudstack-simulator

it works well in my testing

root@689d4fe9dabc:~# python /root/tools/marvin/marvin/deployDataCenter.py -i /root/setup/dev/advanced.cfg

==== Log Folder Path: /tmp/MarvinLogs/DeployDataCenter__May_17_2022_11_49_11_KB6AX4 All logs will be available here ====

==== Deploy DC Started ====

=== Data Center Settings are dumped to /tmp/MarvinLogs/DeployDataCenter__May_17_2022_11_49_11_KB6AX4/dc_entries.obj===

====Deploy DC Successful=====
root@689d4fe9dabc:~# 

Please notice you should create the zone only when management server is running.

@synergiator
Copy link

thanks @weizhouapache - it works indeed with 4.16.1.0, obviously I did not verified final server start logs. Now it's time for the Docker Hub release :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue while running the simulator docker image
4 participants