ptoma98 / skytap-cloud-plugin

Repository for Release 2 of the Skytap Plugin
0 stars 0 forks source link

List Published URL not Finding Named URL #14

Open tjmilligan opened 10 years ago

tjmilligan commented 10 years ago

The List Published URL action is not finding the named, existing Published URL set. The Published URL is set up as pictured here: urldef

The action is configured as pictured here: stepdef

The log shows the specified published URL is not being found and the build is marked as failed:


List Published URL for Configuration Step

Expanding environment variable ... Publish-URL-Config-Test-$BUILD_NUMBER=>Publish-URL-Config-Test-8 Expanding environment variable ... Runnable-URL-$BUILD_NUMBER=>Runnable-URL-8 File: Runnable-URL-8 was specified without a path. Defaulting path to Jenkins workspace. Expanding environment variable ... ${WORKSPACE}=>/var/lib/jenkins/jobs/Test-List-Published-URL/workspace File: Publish-URL-Config-Test-8 was specified without a path. Defaulting path to Jenkins workspace. Expanding environment variable ... ${WORKSPACE}=>/var/lib/jenkins/jobs/Test-List-Published-URL/workspace User provided file: /var/lib/jenkins/jobs/Test-List-Published-URL/workspace/Publish-URL-Config-Test-8 Configuration ID: 1495408 Configuration File: /var/lib/jenkins/jobs/Test-List-Published-URL/workspace/Publish-URL-Config-Test-8 URL Name: Runnable URL URL Save Filename: /var/lib/jenkins/jobs/Test-List-Published-URL/workspace/Runnable-URL-8 Building request url ... Request URL: https://cloud.skytap.com/configurations/1495408 HTTP GET Request: GET https://cloud.skytap.com/configurations/1495408 HTTP/1.1 2014-02-04:10-04-03 Executing Request: GET https://cloud.skytap.com/configurations/1495408 HTTP/1.1 HTTP/1.1 200 OK Scanning publish_sets ... Scanning VM URL Jazz Team Server 4.0.5 Trial ... Scanning VM URL RTC 4.0.5 Client ... Scanning VM URL Jazz Team Server 4.0.5 Trial ... Scanning VM URL RTC 4.0.5 Client ... No publish_sets matched user provided name: Runnable URL URL Name: Runnable URL could not be found in publish_sets for configuration 1495408 Failing build step. Build step 'Execute Skytap Action' marked build as failure Finished: FAILURE

ptoma98 commented 10 years ago

Let me check this tonight and get back to you. I don't recall what the API was returning but I had to get the publish_set first before I could get the URL.

-Patrick

On Tue, Feb 4, 2014 at 12:10 PM, tmilligan-skytap notifications@github.comwrote:

The List Published URL action is not finding the named, existing Published URL set. The Published URL is set up as pictured here: [image: urldef]https://f.cloud.github.com/assets/5240644/2079232/916ea28c-8dc7-11e3-9977-ac2ab277a64b.jpg

The action is configured as pictured here: [image: stepdef]https://f.cloud.github.com/assets/5240644/2079230/8b823c62-8dc7-11e3-9e96-bb9895e856ed.jpg

The log shows the specified published URL is not being found and the build

is marked as failed:

List Published URL for Configuration Step

Expanding environment variable ... Publish-URL-Config-Test-$BUILD_NUMBER=>Publish-URL-Config-Test-8 Expanding environment variable ... Runnable-URL-$BUILD_NUMBER=>Runnable-URL-8 File: Runnable-URL-8 was specified without a path. Defaulting path to Jenkins workspace. Expanding environment variable ... ${WORKSPACE}=>/var/lib/jenkins/jobs/Test-List-Published-URL/workspace File: Publish-URL-Config-Test-8 was specified without a path. Defaulting path to Jenkins workspace. Expanding environment variable ... ${WORKSPACE}=>/var/lib/jenkins/jobs/Test-List-Published-URL/workspace User provided file: /var/lib/jenkins/jobs/Test-List-Published-URL/workspace/Publish-URL-Config-Test-8 Configuration ID: 1495408 Configuration File: /var/lib/jenkins/jobs/Test-List-Published-URL/workspace/Publish-URL-Config-Test-8 URL Name: RunnableURL URL Save Filename: /var/lib/jenkins/jobs/Test-List-Published-URL/workspace/Runnable-URL-8 Building request url ... Request URL: https://cloud.skytap.com/configurations/1495408 HTTP GET Request: GET https://cloud.skytap.com/configurations/1495408HTTP/1.1 2014-02-04:10-04-03 Executing Request: GET https://cloud.skytap.com/configurations/1495408HTTP/1.1 HTTP/1.1 200 OK Scanning publish_sets ... Scanning VM URL Jazz Team Server 4.0.5 Trial ... Scanning VM URL RTC 4.0.5 Client ... Scanning VM URL Jazz Team Server 4.0.5 Trial ... Scanning VM URL RTC 4.0.5 Client ... No publish_sets matched user provided name: RunnableURL URL Name: RunnableURL could not be found in publish_sets for configuration 1495408 Failing build step. Build step 'Execute Skytap Action' marked build as failure Finished: FAILURE

Reply to this email directly or view it on GitHubhttps://github.com/ptoma98/skytap-cloud-plugin/issues/14 .

tjmilligan commented 10 years ago

The data structure returned that describes a published URL contains a field named "published_set_type"; if it has a value of "single_url" then there is a top-level field named "desktops_url".

To keep our lives simple (unless the code already handles the case where each VM desktop has its own URL), if the field "published_set_type" is "multiple_url" then it is reasonable to throw an error indicating that only a single published URL for all desktops in the configuration is supported and fail the build.

Here is a screenshot of the data structure for a published URL that illustrates this:

ps-json

Here is an example of a "multiple_url":

ps-json2

ptoma98 commented 10 years ago

Can you test this again? I think I fixed it.. but there seem to be a wide variety of data structures returned for publish_sets. Sometimes the publish_sets array is empty.

-Patrick

On Tue, Feb 4, 2014 at 6:29 PM, tmilligan-skytap notifications@github.comwrote:

The data structure returned that describes a published URL contains a field named "published_set_type"; if it has a value of "single_url" then there is a top-level field named "desktops_url".

To keep our lives simple, if the field "published_set_type" is anything "multiple_url" then it is reasonable to throw an error indicating that only a single published URL for all desktops in the configuration is supported and fail the build.

Here is a screenshot of the data structure for a published URL that illustrates this:

[image: ps-json]https://f.cloud.github.com/assets/5240644/2083157/842a7b16-8dfc-11e3-8d48-ef0da785bd05.jpg

Reply to this email directly or view it on GitHubhttps://github.com/ptoma98/skytap-cloud-plugin/issues/14#issuecomment-34125161 .

tjmilligan commented 10 years ago

Hi Patrick,

I reran my tests and it appears to be working! So, I think we're ready to push things to the Jenkins Release Repo so I can do a build and release. Please push the current code back into the Jenkins Release repo as soon as you can.

Thanks!

-- Tom Milligan Sr. Cloud Integration Architect Skytap, Inc. | The Intuitive Enterprise Cloud O: 615-861-6779 | M: 805-403-2166

From: Patrick Toma notifications@github.com<mailto:notifications@github.com> Reply-To: ptoma98/skytap-cloud-plugin reply@reply.github.com<mailto:reply@reply.github.com> Date: Tuesday, February 4, 2014 8:34 PM To: ptoma98/skytap-cloud-plugin skytap-cloud-plugin@noreply.github.com<mailto:skytap-cloud-plugin@noreply.github.com> Cc: Tom Milligan tmilligan@skytap.com<mailto:tmilligan@skytap.com> Subject: Re: [skytap-cloud-plugin] List Published URL not Finding Named URL (#14)

Can you test this again? I think I fixed it.. but there seem to be a wide variety of data structures returned for publish_sets. Sometimes the publish_sets array is empty.

-Patrick

On Tue, Feb 4, 2014 at 6:29 PM, tmilligan-skytap notifications@github.com<mailto:notifications@github.com>wrote:

The data structure returned that describes a published URL contains a field named "published_set_type"; if it has a value of "single_url" then there is a top-level field named "desktops_url".

To keep our lives simple, if the field "published_set_type" is anything "multiple_url" then it is reasonable to throw an error indicating that only a single published URL for all desktops in the configuration is supported and fail the build.

Here is a screenshot of the data structure for a published URL that illustrates this:

[image: ps-json]https://f.cloud.github.com/assets/5240644/2083157/842a7b16-8dfc-11e3-8d48-ef0da785bd05.jpg

Reply to this email directly or view it on GitHubhttps://github.com/ptoma98/skytap-cloud-plugin/issues/14#issuecomment-34125161 .

Reply to this email directly or view it on GitHubhttps://github.com/ptoma98/skytap-cloud-plugin/issues/14#issuecomment-34136963.

ptoma98 commented 10 years ago

Ok if I do the merge tonight? Don't really have much time to verify it here at work..

-Patrick

On Tue, Feb 4, 2014 at 11:13 PM, tmilligan-skytap notifications@github.comwrote:

Hi Patrick,

I reran my tests and it appears to be working! So, I think we're ready to push things to the Jenkins Release Repo so I can do a build and release. Please push the current code back into the Jenkins Release repo as soon as you can.

Thanks!

-- Tom Milligan Sr. Cloud Integration Architect Skytap, Inc. | The Intuitive Enterprise Cloud O: 615-861-6779 | M: 805-403-2166

From: Patrick Toma <notifications@github.com<mailto: notifications@github.com>> Reply-To: ptoma98/skytap-cloud-plugin <reply@reply.github.com<mailto: reply@reply.github.com>> Date: Tuesday, February 4, 2014 8:34 PM To: ptoma98/skytap-cloud-plugin <skytap-cloud-plugin@noreply.github.com mailto:skytap-cloud-plugin@noreply.github.com> Cc: Tom Milligan tmilligan@skytap.com<mailto:tmilligan@skytap.com> Subject: Re: [skytap-cloud-plugin] List Published URL not Finding Named URL (#14)

Can you test this again? I think I fixed it.. but there seem to be a wide variety of data structures returned for publish_sets. Sometimes the publish_sets array is empty.

-Patrick

On Tue, Feb 4, 2014 at 6:29 PM, tmilligan-skytap notifications@github.com<mailto:notifications@github.com>wrote:

The data structure returned that describes a published URL contains a field named "published_set_type"; if it has a value of "single_url" then there is a top-level field named "desktops_url".

To keep our lives simple, if the field "published_set_type" is anything "multiple_url" then it is reasonable to throw an error indicating that only a single published URL for all desktops in the configuration is supported and fail the build.

Here is a screenshot of the data structure for a published URL that illustrates this:

[image: ps-json]< https://f.cloud.github.com/assets/5240644/2083157/842a7b16-8dfc-11e3-8d48-ef0da785bd05.jpg>

Reply to this email directly or view it on GitHub< https://github.com/ptoma98/skytap-cloud-plugin/issues/14#issuecomment-34125161>

.

Reply to this email directly or view it on GitHub< https://github.com/ptoma98/skytap-cloud-plugin/issues/14#issuecomment-34136963>.

Reply to this email directly or view it on GitHubhttps://github.com/ptoma98/skytap-cloud-plugin/issues/14#issuecomment-34138360 .

tjmilligan commented 10 years ago

Tonight works!

Thanks!!

Tom Milligan

On Feb 5, 2014, at 6:56 AM, "Patrick Toma" notifications@github.com<mailto:notifications@github.com> wrote:

Ok if I do the merge tonight? Don't really have much time to verify it here at work..

-Patrick

On Tue, Feb 4, 2014 at 11:13 PM, tmilligan-skytap notifications@github.com<mailto:notifications@github.com>wrote:

Hi Patrick,

I reran my tests and it appears to be working! So, I think we're ready to push things to the Jenkins Release Repo so I can do a build and release. Please push the current code back into the Jenkins Release repo as soon as you can.

Thanks!

-- Tom Milligan Sr. Cloud Integration Architect Skytap, Inc. | The Intuitive Enterprise Cloud O: 615-861-6779 | M: 805-403-2166

From: Patrick Toma notifications@github.com<mailto:notifications@github.com<mailto: notifications@github.commailto:notifications@github.com>> Reply-To: ptoma98/skytap-cloud-plugin reply@reply.github.com<mailto:reply@reply.github.com<mailto: reply@reply.github.commailto:reply@reply.github.com>> Date: Tuesday, February 4, 2014 8:34 PM To: ptoma98/skytap-cloud-plugin skytap-cloud-plugin@noreply.github.com<mailto:skytap-cloud-plugin@noreply.github.com mailto:skytap-cloud-plugin@noreply.github.com> Cc: Tom Milligan tmilligan@skytap.com<mailto:tmilligan@skytap.commailto:tmilligan@skytap.com> Subject: Re: [skytap-cloud-plugin] List Published URL not Finding Named URL (#14)

Can you test this again? I think I fixed it.. but there seem to be a wide variety of data structures returned for publish_sets. Sometimes the publish_sets array is empty.

-Patrick

On Tue, Feb 4, 2014 at 6:29 PM, tmilligan-skytap notifications@github.com<mailto:notifications@github.commailto:notifications@github.com>wrote:

The data structure returned that describes a published URL contains a field named "published_set_type"; if it has a value of "single_url" then there is a top-level field named "desktops_url".

To keep our lives simple, if the field "published_set_type" is anything "multiple_url" then it is reasonable to throw an error indicating that only a single published URL for all desktops in the configuration is supported and fail the build.

Here is a screenshot of the data structure for a published URL that illustrates this:

[image: ps-json]< https://f.cloud.github.com/assets/5240644/2083157/842a7b16-8dfc-11e3-8d48-ef0da785bd05.jpg>

Reply to this email directly or view it on GitHub< https://github.com/ptoma98/skytap-cloud-plugin/issues/14#issuecomment-34125161>

.

Reply to this email directly or view it on GitHub< https://github.com/ptoma98/skytap-cloud-plugin/issues/14#issuecomment-34136963>.

Reply to this email directly or view it on GitHubhttps://github.com/ptoma98/skytap-cloud-plugin/issues/14#issuecomment-34138360 .

Reply to this email directly or view it on GitHubhttps://github.com/ptoma98/skytap-cloud-plugin/issues/14#issuecomment-34182401.

ptoma98 commented 10 years ago

Hey Tom,

Just merged the changes.. I'll pull down the latest from the jenkins ci repo and make sure it all works.

Patrick

On Wed, Feb 5, 2014 at 9:44 AM, tmilligan-skytap notifications@github.comwrote:

Tonight works!

Thanks!!

Tom Milligan

  • Sent from my iPhone

On Feb 5, 2014, at 6:56 AM, "Patrick Toma" <notifications@github.com mailto:notifications@github.com> wrote:

Ok if I do the merge tonight? Don't really have much time to verify it here at work..

-Patrick

On Tue, Feb 4, 2014 at 11:13 PM, tmilligan-skytap notifications@github.com<mailto:notifications@github.com>wrote:

Hi Patrick,

I reran my tests and it appears to be working! So, I think we're ready to push things to the Jenkins Release Repo so I can do a build and release. Please push the current code back into the Jenkins Release repo as soon as you can.

Thanks!

-- Tom Milligan Sr. Cloud Integration Architect Skytap, Inc. | The Intuitive Enterprise Cloud O: 615-861-6779 | M: 805-403-2166

From: Patrick Toma <notifications@github.com<mailto: notifications@github.com><mailto: notifications@github.commailto:notifications@github.com>> Reply-To: ptoma98/skytap-cloud-plugin <reply@reply.github.com<mailto: reply@reply.github.com><mailto: reply@reply.github.commailto:reply@reply.github.com>> Date: Tuesday, February 4, 2014 8:34 PM To: ptoma98/skytap-cloud-plugin <skytap-cloud-plugin@noreply.github.com mailto:skytap-cloud-plugin@noreply.github.com mailto:skytap-cloud-plugin@noreply.github.com> Cc: Tom Milligan <tmilligan@skytap.com<mailto:tmilligan@skytap.com mailto:tmilligan@skytap.com> Subject: Re: [skytap-cloud-plugin] List Published URL not Finding Named URL (#14)

Can you test this again? I think I fixed it.. but there seem to be a wide variety of data structures returned for publish_sets. Sometimes the publish_sets array is empty.

-Patrick

On Tue, Feb 4, 2014 at 6:29 PM, tmilligan-skytap notifications@github.com<mailto:notifications@github.com<mailto: notifications@github.com>>wrote:

The data structure returned that describes a published URL contains a field named "published_set_type"; if it has a value of "single_url" then there is a top-level field named "desktops_url".

To keep our lives simple, if the field "published_set_type" is anything "multiple_url" then it is reasonable to throw an error indicating that only a single published URL for all desktops in the configuration is supported and fail the build.

Here is a screenshot of the data structure for a published URL that illustrates this:

[image: ps-json]<

https://f.cloud.github.com/assets/5240644/2083157/842a7b16-8dfc-11e3-8d48-ef0da785bd05.jpg>

Reply to this email directly or view it on GitHub<

https://github.com/ptoma98/skytap-cloud-plugin/issues/14#issuecomment-34125161>

.

Reply to this email directly or view it on GitHub<

https://github.com/ptoma98/skytap-cloud-plugin/issues/14#issuecomment-34136963>.

Reply to this email directly or view it on GitHub< https://github.com/ptoma98/skytap-cloud-plugin/issues/14#issuecomment-34138360>

.

Reply to this email directly or view it on GitHub< https://github.com/ptoma98/skytap-cloud-plugin/issues/14#issuecomment-34182401>.

Reply to this email directly or view it on GitHubhttps://github.com/ptoma98/skytap-cloud-plugin/issues/14#issuecomment-34192500 .