[JIRA] (JENKINS-60482) EC2 Alternate Endpoint and Region are reset when managing jenkins configuration

0 views
Skip to first unread message

heather@wellhive.com (JIRA)

unread,
Dec 13, 2019, 5:45:03 PM12/13/19
to jenkinsc...@googlegroups.com
Heather Lemieux created an issue
 
Jenkins / Bug JENKINS-60482
EC2 Alternate Endpoint and Region are reset when managing jenkins configuration
Issue Type: Bug Bug
Assignee: FABRIZIO MANFREDI
Attachments: Configuration Page with reset field.png, Resetting field results in an error.png, Screen Shot 2019-12-05 at 11.24.45 AM.png, Screen Shot 2019-12-13 at 4.44.50 PM.png
Components: ec2-plugin
Created: 2019-12-13 22:44
Environment: os.name: Linux
os.version: 4.14.106-79.86.amzn1.x86_64
plugin version: 1.45
java.version: 1.8.0_212
Labels: plugin configuration
Priority: Minor Minor
Reporter: Heather Lemieux

This plugin’s configuration section, within the “Manage → System Configuration” area of Jenkins, has a bug that requires us to always re-set the Alternate EC2 url and region parameters. In the event that someone opens the System Configuration page and performs a “Save” without resetting these fields, Jenkins will get into a state where it’s either partially or completely unusable due to it saving a configuration with no region set, which shouldn't be allowed.

Attached are two examples of what has happened when a save occurs and the fields were not set.

Additionally, when you go to the configuration page and try to reset the field an error is returned via the plugin, however saving still sets the region correctly . A screenshot of that is included as well.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

heather@wellhive.com (JIRA)

unread,
Dec 13, 2019, 5:47:02 PM12/13/19
to jenkinsc...@googlegroups.com
Heather Lemieux updated an issue
Change By: Heather Lemieux
Attachment:
Screen Shot 2019-12-05 at 11.24.45 AM.png

heather@wellhive.com (JIRA)

unread,
Dec 13, 2019, 5:48:01 PM12/13/19
to jenkinsc...@googlegroups.com

heather@wellhive.com (JIRA)

unread,
Dec 13, 2019, 6:22:03 PM12/13/19
to jenkinsc...@googlegroups.com

heather@wellhive.com (JIRA)

unread,
Dec 13, 2019, 6:22:03 PM12/13/19
to jenkinsc...@googlegroups.com
Heather Lemieux updated an issue
This plugin’s configuration section, within the “Manage → System Configuration” area of Jenkins, has a bug that requires us to always re-set the Alternate EC2 url and region parameters. In the event that someone opens the System Configuration page and performs a “Save” without resetting these fields, Jenkins will get into a state where it’s either partially or completely unusable due to it saving a configuration with no region set, which shouldn't be allowed.

Attached are two examples of what has happened when a save occurs and the fields were not set.



Additionally, when you go to the configuration page and try to reset the field an error is returned via the plugin, however and saving still sets anyway also results in the region correctly not being set . A screenshot of that is included as well.

heather@wellhive.com (JIRA)

unread,
Dec 13, 2019, 6:29:02 PM12/13/19
to jenkinsc...@googlegroups.com
Heather Lemieux updated an issue
This plugin’s configuration section, within the “Manage → System Configuration” area of Jenkins, has a bug that requires us to always re-set the Alternate EC2 url and region parameters. In the event that someone opens the System Configuration page and performs a “Save” without resetting these fields, Jenkins will get into a state where it’s either partially or completely unusable due to it saving a configuration with no region set, which shouldn't be allowed.

Attached are two examples of what has happened when a save occurs and the fields were not set.

Additionally, when you go to the configuration page and try to reset the field an error is returned via the plugin, and saving anyway also results in the region not being set. A screenshot of that is included as well.

In order to resolve the issue, we have to go onto the ec2 instance where jenkins is running, edit the config.xml and restart the jenkins docker container.

heather@wellhive.com (JIRA)

unread,
Dec 13, 2019, 6:31:01 PM12/13/19
to jenkinsc...@googlegroups.com
Heather Lemieux updated an issue
Change By: Heather Lemieux
Attachment: region in the config.xml is empty.png

heather@wellhive.com (JIRA)

unread,
Dec 13, 2019, 6:32:05 PM12/13/19
to jenkinsc...@googlegroups.com
Heather Lemieux updated an issue
This plugin’s configuration section, within the “Manage → System Configuration” area of Jenkins, has a bug that requires us to always re-set wipes the Alternate EC2 url and region parameters. In the event that someone opens the System Configuration page and performs a “Save” without resetting these fields, Jenkins will get into a state where it’s either partially or completely unusable due to it saving a configuration with no region set, which shouldn't be allowed.


Attached are two examples of what has happened when a save occurs and the fields were not set.

Additionally, when you go to the configuration page and try to reset the field fields an error is returned via the plugin, and saving anyway also still results in the region not being set. A screenshot of that is included as well.


In order to resolve the issue, we have to go onto the ec2 instance where jenkins is running, edit the config.xml and restart the jenkins docker container.

heather@wellhive.com (JIRA)

unread,
Dec 17, 2019, 1:54:03 PM12/17/19
to jenkinsc...@googlegroups.com
Heather Lemieux updated an issue
Change By: Heather Lemieux
Attachment: Screen Shot 2019-12-17 at 1.53.09 PM.png

kevin.flynn@wellhive.com (JIRA)

unread,
Dec 17, 2019, 2:14:02 PM12/17/19
to jenkinsc...@googlegroups.com
Kevin Flynn commented on Bug JENKINS-60482
 
Re: EC2 Alternate Endpoint and Region are reset when managing jenkins configuration

This is also an issue for me. We tried setting the AWS_DEFAULT_REGION env var in the Jenkins docker container, but the EC2 Plugin still can't determine the EC2 endpoint on it's own.

heather@wellhive.com (JIRA)

unread,
Feb 14, 2020, 10:28:05 AM2/14/20
to jenkinsc...@googlegroups.com
Heather Lemieux updated an issue
Change By: Heather Lemieux
Attachment: Screen Shot 2020-02-14 at 10.24.56 AM.png
This plugin’s configuration section, within the “Manage → System Configuration” area of Jenkins, has a bug that wipes the Alternate EC2 url and region parameters. In the event that someone opens the System Configuration page and performs a “Save” without resetting these fields, Jenkins will get into a state where it’s either partially or completely unusable due to it saving a configuration with no region set, which shouldn't be allowed.


Attached are two examples of what has happened when a save occurs and the fields were not set.

Additionally, when you go to the configuration page and try to reset the fields an error is returned via the plugin, and saving still results in the region not being set. A screenshot of that is included as well.

If you wait long enough, eventually the plugin will return a 504 gateway timeout. A screenshot of that is also included.

In order to resolve the issue, we have to go onto the ec2 instance where jenkins is running, edit the config.xml and restart the jenkins docker container.


Edit: We have since updated Jenkins to v 2.204.2 and the issue persists.

heather@wellhive.com (JIRA)

unread,
Feb 14, 2020, 10:29:03 AM2/14/20
to jenkinsc...@googlegroups.com
Heather Lemieux updated an issue
Change By: Heather Lemieux
Attachment: Screen Shot 2020-02-14 at 10.28.44 AM.png

heather@wellhive.com (JIRA)

unread,
Feb 14, 2020, 10:32:03 AM2/14/20
to jenkinsc...@googlegroups.com
Heather Lemieux updated an issue
Change By: Heather Lemieux
Environment: os.name:          Linux
os.version:       4.14.106-79.86.amzn1.x86_64
-> have since updated to 4.14.146-120.181.amzn2.x86_64
plugin version: 1.45
-> have since updated to 1.49.1
java.version:     1.8.0_212
-> have since updated to 1.8.0_242-b08

troymohl@gmail.com (JIRA)

unread,
Mar 10, 2020, 6:42:02 AM3/10/20
to jenkinsc...@googlegroups.com
Troy Mohl commented on Bug JENKINS-60482
 
Re: EC2 Alternate Endpoint and Region are reset when managing jenkins configuration

I have submitted a PR that I believe fixes this problem when using an alternate endpoint to select the AWS region: https://github.com/jenkinsci/ec2-plugin/pull/439

This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

martin@martinlee.org (JIRA)

unread,
Apr 9, 2020, 8:32:02 AM4/9/20
to jenkinsc...@googlegroups.com

This is an issue for me as well for a different reason - we have the us-east-1 region blocked org-wide for reasons various. This means we rely on this setting to get the region list.

Reply all
Reply to author
Forward
0 new messages