Skip to content

/zosmf/variables/rest/1.0/systems/{system-id} is confusing - and provides no debg info #2361

@colinpaicemq

Description

@colinpaicemq

Describe the bug
A clear and concise description of what the bug is.

The swagger page says

Retrieve system variables/symbols for the {sysplex.sysname} specified in the request
....
system-id: Identifies the system in format sysplex-name.system-name. For system symbols, we only support local sysplex-name here.

because it returns system variables. Is the format sysplex-name.system-name. redundant?

When it says local sysplex name do you mean the local sysplex name?
For example
the operator command D SYMBOLS gives

D SYMBOLS                                                           
IEA007I STATIC SYSTEM SYMBOL VALUES 828                             
 &SYSALVL.          = "2"                                           
 &SYSCLONE.         = "1A"                                          
 &SYSNAME.          = "S0W1"                                        
 &SYSOSLVL.         = "Z1030100"                                    
 &SYSPLEX.          = "ADCDPL"                                      
 &SYSR1.            = "B3RES1"                                      

so is the swagger is saying specify ADCDPL? (Which is the wrong value to use)

I think it should be saying local system name = S0w1, because 2 systems in the sysplex could have different symbols.

The system name is 4 chars long, so giving a default of "local" feels wrong.


When I tried running this I got

{
"messages": [
{
"messageType": "ERROR",
"messageNumber": "ZWEAO503E",
"messageContent": "The server is not ready to handle the request: /ibmzosmf/api/v1/zosmf/variables/rest/1.0/systems/S0W1",
"messageAction": "Repeat the request later. Please contact support for further assistance.",
"messageReason": "The service is not ready to handle the request, it is being initialized or waiting for another service to start.",
"messageKey": "org.zowe.apiml.common.serviceUnavailable"
}
]
}

I looked in all the logs and could not find any error message or message text ( z/OSMF, ZOWe or z/oS),

Please enhance the message documentation with where to look eg /global/zosmf.

It maybe that the code is not generating an error message in the logs - and it should generate a message. This is a message that should go onto the z/OS syslog - so automation can pick it up and process it.

Steps to Reproduce

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Logs
If applicable, add server logs collected at the time of your problem.

Details

  • Version and build number: [e.g. 0.4.4-SNAPSHOT build # 155]
  • Test environment: [either defined Zowe test environment: Marist (1, 2, 3), River, or your own environment: z/OS version and z/OSMF version]

API Catalog Web UI (in case of API Catalog issue):

  • OS: [e.g. macOS, Windows]
  • Browser [e.g. Chrome, Safari]
  • Version [e.g. 71.0.3578.98]

REST API client (in case of REST API issue):

  • Technology: [e.g. Spring Boot, Node.js]
  • OS: [e.g. Windows 10]

Additional context
Add any other context about the problem here.

Willingness to help
If you are willing to help with debugging and reproducing the problem or
with fixing the problem, please state your willingness to assist in the created issue.

https://github.com/zowe/api-layer/wiki/Issue-management

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions