jenkinsci / openstack-cloud-plugin

Provision nodes from OpenStack on demand
https://plugins.jenkins.io/openstack-cloud
MIT License
47 stars 84 forks source link

Can not add credentials to new Cloud anymore #373

Closed Brenne closed 1 year ago

Brenne commented 1 year ago

Jenkins and plugins versions report

Environment ```text Jenkins: 2.414.2 OS: Linux - 6.1.30-0-virt Java: 17.0.8.1 - Eclipse Adoptium (OpenJDK 64-Bit Server VM) --- apache-httpcomponents-client-4-api:4.5.14-208.v438351942757 bouncycastle-api:2.29 caffeine-api:3.1.8-133.v17b_1ff2e0599 cloud-stats:320.v96b_65297a_4b_b_ config-file-provider:959.vcff671a_4518b_ credentials:1293.vff276f713473 credentials-binding:636.v55f1275c7b_27 instance-identity:173.va_37c494ec4e5 javax-activation-api:1.2.0-6 javax-mail-api:1.6.2-9 jdk-tool:73.vddf737284550 openstack-cloud:2.64 plain-credentials:143.v1b_df8b_d3b_e48 resource-disposer:0.23 script-security:1275.v23895f409fb_d ssh-credentials:308.ve4497b_ccd8f4 ssh-slaves:2.916.vd17b_43357ce4 structs:325.vcb_307d2a_2782 token-macro:384.vf35b_f26814ec trilead-api:2.84.v72119de229b_7 workflow-step-api:639.v6eca_cd8c04a_a_ ```

What Operating System are you using (both controller, and any agents involved in the problem)?

Issue is OS independent can be reproduced on k8s, Linux but for this issue reproduced on MacOS just running Jenkins in the container.

Reproduction steps

  1. fresh Jenkins just Openstack plugin and dependencies installed
  2. add a new Cloud via UI http://localhost:8080/cloud/new , Type Openstack, use any name
  3. click button create
  4. now already there are errors in Jenkins System log
    
    2023-10-23 14:45:10.835+0000 [id=20]    WARNING o.e.j.s.h.ContextHandler$Context#log: Error while serving http://localhost:8080/cloud/create
    org.apache.commons.jelly.JellyTagException: jar:file:/var/jenkins_home/plugins/openstack-cloud/WEB-INF/lib/openstack-cloud.jar!/jenkins/plugins/openstack/compute/JCloudsSlaveTemplate/config.jelly:16:83: <st:include> No page found 'config.jelly' for class net.sf.json.JSONObject
    [...]
    2023-10-23 14:45:10.837+0000 [id=20]    WARNING h.i.i.InstallUncaughtExceptionHandler#handleException: Caught unhandled exception with ID 3453af10-126e-4eaf-8336-25c157f24ef5
    org.apache.commons.jelly.JellyTagException: jar:file:/var/jenkins_home/plugins/openstack-cloud/WEB-INF/lib/openstack-cloud.jar!/jenkins/plugins/openstack/compute/JCloudsSlaveTemplate/config.jelly:16:83: <st:include> No page found 'config.jelly' for class net.sf.json.JSONObject
    at org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:149)

but also UI functionality is impacted. Credentials can not be created neither added to the UI anymore.

### Expected Results

To be able to add Credentials while creating the new cloud. Add Button does not work throws errors. Also when adding credentials before creating the cloud those credentials can not be added / referenced / selected anymore

### Actual Results

It is not possible anymore to add a new Openstack Cloud via the UI just existing ones can be edited.

### Anything else?

_No response_
Brenne commented 1 year ago

This issue is fixed with Jenkins 2.414.3 and openstack-cloud:2.65