Closed alexandremattioli closed 4 months ago
Could be a good one for GSOC
@alexandremattioli I've added to the GSOC2023 ideas, can you please present the idea in a paragraph for better understanding of potential contributors?
@nvazquez Currently in ACS when an end-user clicks on the download button for a tempalte, iso or volume, the file name is in the form UUID.ext. It would be extremely useful for the file name to be resourceName.ext instead.
@nvazquez Currently in ACS when an end-user clicks on the download button for a tempalte, iso or volume, the file name is in the form UUID.ext. It would be extremely useful for the file name to be resourceName.ext instead.
@alexandremattioli, I think what @nvazquez means is to edit the issue description to read as a full functional spec, so it will be easy to assess for interns if they want to work on it.
Copy @DaanHoogland Thanks
Yes, @DaanHoogland is correct, sorry if it wasn't clear
Hello @alexandremattioli @nvazquez, I am Interested in this project. Can we connect so that we can discuss healthy talk on this issue? My Experience:
Hi @AayushSaini101,
Thanks for reaching us, I would recommend a good way to start is the Hackerbook: https://github.com/shapeblue/hackerbook, and for further reading on the core concepts, the documentation: http://docs.cloudstack.apache.org/en/latest/
Please let us know if you have any issues
Thanks, @nvazquez for the reply. Over the last two days. I am trying to set up the project, but unable to execute the server management. I am getting build failure error and cannot able to execute the server. I am using rhel8 and project SDK is 8 and also I have tried by using setting SDk to 11.
@AayushSaini101 can you pull the latest code form the main branch? Otherwise, you can try pulling the code from the latest release tag: 4.18.0.0. Also, it seems like you are building using the noredist profile, is this correct? If so, please get the dependencies from this repo: https://github.com/shapeblue/cloudstack-nonoss into your deps
directory and install them via the script before building
@nvazquez Thanks above changes work. Now I am facing an issue regarding the DB Setup while executing the mvn -P developer -pl developer -Ddeploydb. I am using MariaDB and already changed the user name and password according to local DB Credentials
@AayushSaini101 check the tip here, https://github.com/shapeblue/hackerbook/blob/main/2-dev.md#setup-mysql-server
@shwstppr Thanks, I am trying this. Also replacing MariaDB to Mysql in my local
@shwstppr @nvazquez Still I cannot able to run it is showing I have already followed the above instructions in the handbook. I am using MariaDB
@AayushSaini101 you will need to provide the root password on your `utils/conf/db.properties' file, it seems like its not finding the file or the password set
@nvazquez Thanks but still is showing Access Denied. Granting to root@localhost
@AayushSaini101 can you verify if the directory utils/conf/ contains also a db.properties.override file? In that case, please remove that one and keep only db.properties with the DB password
@nvazquez Thanks But it contains only one file db.properties
@AayushSaini101 ok, are you able to access mysql using the password set on the file by mysql -u root -p
?
@nvazquez Yes
@AayushSaini101 can you post the content of the db.properties file hiding the passwords? I suspect the root password field may be empty
cluster.node.IP=127.0.0.1
cluster.servlet.port=9090
region.id=1
# CloudStack database settings
db.cloud.username=root
db.cloud.password=12345
db.root.password=12345
db.cloud.host=localhost
db.cloud.driver=jdbc:mysql
db.cloud.port=3306
db.cloud.name=cloud
# CloudStack database tuning parameters
db.cloud.maxActive=250
db.cloud.maxIdle=30
db.cloud.maxWait=10000
db.cloud.autoReconnect=true
db.cloud.validationQuery=SELECT 1
db.cloud.testOnBorrow=true
db.cloud.testWhileIdle=true
db.cloud.timeBetweenEvictionRunsMillis=40000
db.cloud.minEvictableIdleTimeMillis=240000
db.cloud.poolPreparedStatements=false
db.cloud.url.params=prepStmtCacheSize=517&cachePrepStmts=true&prepStmtCacheSqlLimit=4096&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'&serverTimezone=UTC
# usage database settings
db.usage.username=root
db.usage.password=12345
db.usage.host=localhost
# It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work
db.usage.driver=jdbc:mysql
db.usage.port=3306
db.usage.name=cloud_usage
# usage database tuning parameters
db.usage.maxActive=100
db.usage.maxIdle=30
db.usage.maxWait=10000
db.usage.autoReconnect=true
db.usage.url.params=serverTimezone=UTC
# Simulator database settings
db.simulator.username=root
db.simulator.password=12345
db.simulator.host=localhost
# It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work
db.simulator.driver=jdbc:mysql
db.simulator.port=3306
db.simulator.name=simulator
db.simulator.maxActive=250
db.simulator.maxIdle=30
db.simulator.maxWait=10000
db.simulator.autoReconnect=true
`
@nvazquez
@AayushSaini101 thanks for sharing, can you change these first lines to:
db.cloud.username=cloud
db.cloud.password=cloud
db.root.password=<YOUR_ROOT_PASSWORD>
CloudStack will create the cloud user (you can choose another password for it) via root user
Thanks @nvazquez Finally Resolved. How to switch this
@AayushSaini101 great! Now you only need to bring up the UI to interact with the management server. Please check: https://github.com/shapeblue/hackerbook/blob/main/2-dev.md#building-cloudstack last section:
To bring up the Cloudstack Ui
$ cd /path/to/cloudstack/ui
$ sudo apt install nodejs npm
$ npm install
$ npm run serve
Make sure to set CS_URL=http://localhost:8080/client on .env.local file on ui.
You should be able to run the management server on http://localhost:5050/
Thanks working on it
@shwstppr @nvazquez Thank you guys. Finally !!
Great, well done @AayushSaini101 - let us know if you have further issues or questions
@nvazquez I am unable to add Register ISO, it is showing unable to find image store. I tried to find this in docs, but able to find. Ths File is https://releases.ubuntu.com/focal/ubuntu-20.04.6-desktop-amd64.iso, and I think we have to change this null keyword in the message isn't ?
@AayushSaini101 looks like you don’t have a secondary storage defined, which hypervisor are you using? You can consider using the simulator that allows you to create a test simulated zone from a script
@nvazquez Can you please tell me where script is located also can you please refer to some of the videos to understand cloudstack much better. In Installation guide there are many videos that are outdated, and also what is basically a resource name
@AayushSaini101 you may need to build the project and setup databases for simulator as explained on: https://cwiki.apache.org/confluence/plugins/servlet/mobile?contentId=30748425#content/view/30748425
After that, with your management server running, you can deploy a test zone with this command:
python ./tools/marvin/marvin/deployDataCenter.py -i setup/dev/advanced.cfg
(may need to run this before: pip install tools/marvin/dist/Marvin-*.tar.gz)
fixed in #9252
ISSUE TYPE
COMPONENT NAME
CLOUDSTACK VERSION
CONFIGURATION
OS / ENVIRONMENT
N/A
SUMMARY
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS