cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

User friendly name of Downloaded Templates Volumes and ISOs

Open alexandremattioli opened this issue 3 years ago • 33 comments

ISSUE TYPE
  • Enhancement Request
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 avatar Dec 06 '22 17:12 alexandremattioli

Could be a good one for GSOC

alexandremattioli avatar Dec 06 '22 17:12 alexandremattioli

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

nvazquez avatar Mar 15 '23 00:03 nvazquez

@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 avatar Mar 16 '23 15:03 alexandremattioli

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

DaanHoogland avatar Mar 17 '23 10:03 DaanHoogland

Copy @DaanHoogland Thanks

alexandremattioli avatar Mar 20 '23 12:03 alexandremattioli

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

nvazquez avatar Mar 20 '23 16:03 nvazquez

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

  • SWE Intern Red Hat [ Kafka, Java, Spring]
  • Content Researcher and Problem Setter Geeks for Geeks.
  • Open Source Contributor and Maintainer at Jenkins, Moja Global. Plugin has 10000+Downloads.
  • GitHub Link: https://github.com/AayushSaini101
  • GSOD 2022 Moja Global: https://drive.google.com/file/d/1xX8xUFZVSkE0fNe6KLIezLHnHaPNH-Gb/view Thank you Aayush LinkedIn: https://www.linkedin.com/in/aayush-saini-0a25931b1/

AayushSaini101 avatar Mar 27 '23 11:03 AayushSaini101

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

nvazquez avatar Mar 28 '23 14:03 nvazquez

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

AayushSaini101 avatar Mar 28 '23 16:03 AayushSaini101

@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 avatar Mar 29 '23 01:03 nvazquez

@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

AayushSaini101 avatar Mar 29 '23 10:03 AayushSaini101

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

shwstppr avatar Mar 29 '23 10:03 shwstppr

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

AayushSaini101 avatar Mar 29 '23 12:03 AayushSaini101

@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

AayushSaini101 avatar Mar 30 '23 10:03 AayushSaini101

@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 avatar Mar 30 '23 11:03 nvazquez

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

AayushSaini101 avatar Mar 30 '23 11:03 AayushSaini101

@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 avatar Mar 30 '23 12:03 nvazquez

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

AayushSaini101 avatar Mar 30 '23 12:03 AayushSaini101

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

nvazquez avatar Mar 30 '23 12:03 nvazquez

@nvazquez Yes

image

AayushSaini101 avatar Mar 30 '23 12:03 AayushSaini101

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

nvazquez avatar Mar 30 '23 13:03 nvazquez


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 avatar Mar 30 '23 13:03 AayushSaini101

@nvazquez

AayushSaini101 avatar Mar 30 '23 13:03 AayushSaini101

@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

nvazquez avatar Mar 30 '23 13:03 nvazquez

Thanks @nvazquez Finally Resolved. How to switch this image

AayushSaini101 avatar Mar 30 '23 14:03 AayushSaini101

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

nvazquez avatar Mar 30 '23 14:03 nvazquez

Thanks working on it

AayushSaini101 avatar Mar 30 '23 14:03 AayushSaini101

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

AayushSaini101 avatar Mar 30 '23 14:03 AayushSaini101

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

nvazquez avatar Mar 30 '23 15:03 nvazquez

@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

AayushSaini101 avatar Mar 31 '23 11:03 AayushSaini101