[
https://issues.apache.org/jira/browse/AMBARI-26188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17893492#comment-17893492
]
Nikita Pande commented on AMBARI-26188:
---------------------------------------
Tried the API in bigtop versions 3.2.0 and 3.3.0
}root ➜ /workspaces/ambari $ curl -v
http://localhost:8080/api/v1/stacks/BIGTOP/versions/3.3.0?fields=operating_systems
-u admin
Enter host password for user 'admin':
* Trying ::1:8080...
* TCP_NODELAY set
* Connected to localhost (::1) port 8080 (#0)
* Server auth using Basic with user 'admin'
> GET /api/v1/stacks/BIGTOP/versions/3.3.0?fields=operating_systems HTTP/1.1
> Host: localhost:8080
> Authorization: Basic YWRtaW46YWRtaW4=
> User-Agent: curl/7.68.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Date: Mon, 28 Oct 2024 15:04:13 GMT
< X-Frame-Options: DENY
< X-XSS-Protection: 1; mode=block
< X-Content-Type-Options: nosniff
< Cache-Control: no-store
< Pragma: no-cache
< Set-Cookie:
AMBARISESSIONID=node01opbqw05ol55v9v5t5eqbzlwd2.node0;Path=/;HttpOnly
< Expires: Thu, 01 Jan 1970 00:00:00 GMT
< User: admin
< Content-Type: text/plain;charset=utf-8
< Vary: Accept-Encoding, User-Agent
< Transfer-Encoding: chunked
<
{
"href" :
"http://localhost:8080/api/v1/stacks/BIGTOP/versions/3.3.0?fields=operating_systems",
"Versions" : {
"stack_name" : "BIGTOP",
"stack_version" : "3.3.0"
},
"operating_systems" : [
{
"href" :
"http://localhost:8080/api/v1/stacks/BIGTOP/versions/3.3.0/operating_systems/openeuler22",
"OperatingSystems" : {
"os_type" : "openeuler22",
"stack_name" : "BIGTOP",
"stack_version" : "3.3.0"
}
},
{
"href" :
"http://localhost:8080/api/v1/stacks/BIGTOP/versions/3.3.0/operating_systems/redhat7",
"OperatingSystems" : {
"os_type" : "redhat7",
"stack_name" : "BIGTOP",
"stack_version" : "3.3.0"
}
},
{
"href" :
"http://localhost:8080/api/v1/stacks/BIGTOP/versions/3.3.0/operating_systems/redhat8",
"OperatingSystems" : {
"os_type" : "redhat8",
"stack_name" : "BIGTOP",
"stack_version" : "3.3.0"
}
},
{
"href" :
"http://localhost:8080/api/v1/stacks/BIGTOP/versions/3.3.0/operating_systems/redhat9",
"OperatingSystems" : {
"os_type" : "redhat9",
"stack_name" : "BIGTOP",
"stack_version" : "3.3.0"
}
}
]
* Connection #0 to host localhost left intact
}root ➜ /workspaces/ambari $ curl -v
http://localhost:8080/api/v1/stacks/BIGTOP/versions/3.2.0?fields=operating_systems
-u admin
Enter host password for user 'admin':
* Trying ::1:8080...
* TCP_NODELAY set
* Connected to localhost (::1) port 8080 (#0)
* Server auth using Basic with user 'admin'
> GET /api/v1/stacks/BIGTOP/versions/3.2.0?fields=operating_systems HTTP/1.1
> Host: localhost:8080
> Authorization: Basic YWRtaW46YWRtaW4=
> User-Agent: curl/7.68.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Date: Mon, 28 Oct 2024 15:04:25 GMT
< X-Frame-Options: DENY
< X-XSS-Protection: 1; mode=block
< X-Content-Type-Options: nosniff
< Cache-Control: no-store
< Pragma: no-cache
< Set-Cookie:
AMBARISESSIONID=node01qcevnywm7sxt1a0o2t7uewkq03.node0;Path=/;HttpOnly
< Expires: Thu, 01 Jan 1970 00:00:00 GMT
< User: admin
< Content-Type: text/plain;charset=utf-8
< Vary: Accept-Encoding, User-Agent
< Transfer-Encoding: chunked
<
{
"href" :
"http://localhost:8080/api/v1/stacks/BIGTOP/versions/3.2.0?fields=operating_systems",
"Versions" : {
"stack_name" : "BIGTOP",
"stack_version" : "3.2.0"
},
"operating_systems" : [
{
"href" :
"http://localhost:8080/api/v1/stacks/BIGTOP/versions/3.2.0/operating_systems/openeuler22",
"OperatingSystems" : {
"os_type" : "openeuler22",
"stack_name" : "BIGTOP",
"stack_version" : "3.2.0"
}
},
{
"href" :
"http://localhost:8080/api/v1/stacks/BIGTOP/versions/3.2.0/operating_systems/redhat7",
"OperatingSystems" : {
"os_type" : "redhat7",
"stack_name" : "BIGTOP",
"stack_version" : "3.2.0"
}
},
{
"href" :
"http://localhost:8080/api/v1/stacks/BIGTOP/versions/3.2.0/operating_systems/redhat8",
"OperatingSystems" : {
"os_type" : "redhat8",
"stack_name" : "BIGTOP",
"stack_version" : "3.2.0"
}
},
{
"href" :
"http://localhost:8080/api/v1/stacks/BIGTOP/versions/3.2.0/operating_systems/redhat9",
"OperatingSystems" : {
"os_type" : "redhat9",
"stack_name" : "BIGTOP",
"stack_version" : "3.2.0"
}
}
]
> Options of OS for repo base URLs for ADD Dropdown is limited
> ------------------------------------------------------------
>
> Key: AMBARI-26188
> URL: https://issues.apache.org/jira/browse/AMBARI-26188
> Project: Ambari
> Issue Type: Bug
> Environment: Ambari-trunk branch
> Ubuntu-
> NAME="Ubuntu"
> VERSION="20.04.6 LTS (Focal Fossa)"
> VS Codespace github
>
> Reporter: Nikita Pande
> Priority: Major
> Attachments: Screenshot 2024-10-17 at 6.18.42 PM.png
>
>
> On selecting any on the BIGTOP versions available on ambari (trunk branch),
> only 4 OS is available: openeuler22, redhat7, redhat8 and redhat9. Other OS
> like Ubuntu, etc is not available.
> Attaching the screenshot
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]