apache / cloudstack

Apache CloudStack is an opensource Infrastructure as a Service (IaaS) cloud computing platform
https://cloudstack.apache.org/
Apache License 2.0
2.09k stars 1.11k forks source link

User friendly name of Downloaded Templates Volumes and ISOs #6949

Closed alexandremattioli closed 4 months ago

alexandremattioli commented 1 year ago
ISSUE TYPE
COMPONENT NAME
UI
CLOUDSTACK VERSION
4.17.1
CONFIGURATION
OS / ENVIRONMENT

N/A

SUMMARY
STEPS TO REPRODUCE
End user clicks on Download Template, ISO or Volume
EXPECTED RESULTS
Filename in the format "resourceName.ext" for templates, isos or volumes being downloaded.
ACTUAL RESULTS
Filename in the format "UUID.ext" for templates, isos or volumes being downloaded.
alexandremattioli commented 1 year ago

Could be a good one for GSOC

nvazquez commented 1 year ago

@alexandremattioli I've added to the GSOC2023 ideas, can you please present the idea in a paragraph for better understanding of potential contributors?

alexandremattioli commented 1 year ago

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

DaanHoogland commented 1 year ago

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

alexandremattioli commented 1 year ago

Copy @DaanHoogland Thanks

nvazquez commented 1 year ago

Yes, @DaanHoogland is correct, sorry if it wasn't clear

AayushSaini101 commented 1 year ago

Hello @alexandremattioli @nvazquez, I am Interested in this project. Can we connect so that we can discuss healthy talk on this issue? My Experience:

nvazquez commented 1 year ago

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

AayushSaini101 commented 1 year ago

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

nvazquez commented 1 year ago

@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

AayushSaini101 commented 1 year ago

@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 image

shwstppr commented 1 year ago

@AayushSaini101 check the tip here, https://github.com/shapeblue/hackerbook/blob/main/2-dev.md#setup-mysql-server

AayushSaini101 commented 1 year ago

@shwstppr Thanks, I am trying this. Also replacing MariaDB to Mysql in my local

AayushSaini101 commented 1 year ago

@shwstppr @nvazquez Still I cannot able to run it is showing image I have already followed the above instructions in the handbook. I am using MariaDB

nvazquez commented 1 year ago

@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

AayushSaini101 commented 1 year ago

image @nvazquez Thanks but still is showing Access Denied. Granting to root@localhost image

nvazquez commented 1 year ago

@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

AayushSaini101 commented 1 year ago

@nvazquez Thanks But it contains only one file db.properties
image

nvazquez commented 1 year ago

@AayushSaini101 ok, are you able to access mysql using the password set on the file by mysql -u root -p?

AayushSaini101 commented 1 year ago

@nvazquez Yes

image

nvazquez commented 1 year ago

@AayushSaini101 can you post the content of the db.properties file hiding the passwords? I suspect the root password field may be empty

AayushSaini101 commented 1 year ago

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
`
AayushSaini101 commented 1 year ago

@nvazquez

nvazquez commented 1 year ago

@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

AayushSaini101 commented 1 year ago

Thanks @nvazquez Finally Resolved. How to switch this image

nvazquez commented 1 year ago

@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/
AayushSaini101 commented 1 year ago

Thanks working on it

AayushSaini101 commented 1 year ago

@shwstppr @nvazquez Thank you guys. Finally !! image

nvazquez commented 1 year ago

Great, well done @AayushSaini101 - let us know if you have further issues or questions

AayushSaini101 commented 1 year ago

@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 ? image

nvazquez commented 1 year ago

@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

AayushSaini101 commented 1 year ago

@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

nvazquez commented 1 year ago

@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)

DaanHoogland commented 4 months ago

fixed in #9252