levindecaro opened a new issue, #8597:
URL: https://github.com/apache/cloudstack/issues/8597

   <!--
   Verify first that your issue/request is not already reported on GitHub.
   Also test if the latest release and main branch are affected too.
   Always add information AFTER of these HTML comments, but no need to delete 
the comments.
   -->
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
   
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   API
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on main 
branch.
   -->
   
   ~~~
   4.17.1 to 4.18.1
   ~~~
   
   ##### CONFIGURATION
   <!--
   Information about the configuration if relevant, e.g. basic network, 
advanced networking, etc.  N/A otherwise
   -->
   
   Advanced Networking
   KVM
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   
   CentOS 7
   Oracle Linux 9
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   
   Error message shown when adding new host, but the host was added actually 
even with error message. This error happen since 4.17.1, likely there are some 
DB record influence the process and the API can't handle.
   
   ##### STEPS TO REPRODUCE
   <!--
   For bugs, show exactly how to reproduce the problem, using a minimal 
test-case. Use Screenshots if accurate.
   
   For new features, show how the feature would be used.
   -->
   
   <!-- Paste example playbooks or commands between quotes below -->
   ~~~
   Add a new host into cluster
   
   ~~~
   
   <!-- You can also paste gist.github.com links for larger files -->
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   
   ~~~
   Host added without error.
   ~~~
   
   ##### ACTUAL RESULTS
   <!-- What actually happened? -->
   
   <!-- Paste verbatim command output between quotes below -->
   ~~~
   Hosted added but with error.
   ~~~
   
   
   ```
   2024-02-02 13:43:05,541 DEBUG [c.c.a.ApiServer] 
(qtp1437654187-1615:ctx-e10e9666 ctx-5839d082) (logid:e1b7ea00) CIDRs from 
which account 'Account 
[{"accountName":"admin","id":2,"uuid":"9189844c-0005-11eb-92dc-52540044e551"}]' 
is allowed to perform API calls: 0.0.0.0/0,::/0
   2024-02-02 13:43:05,543 INFO  [o.a.c.a.DynamicRoleBasedAPIAccessChecker] 
(qtp1437654187-1615:ctx-e10e9666 ctx-5839d082) (logid:e1b7ea00) Account 
[Account 
[{"accountName":"admin","id":2,"uuid":"9189844c-0005-11eb-92dc-52540044e551"}]] 
is Root Admin or Domain Admin, all APIs are allowed.
   2024-02-02 13:43:05,545 INFO  [o.a.c.a.ProjectRoleBasedApiAccessChecker] 
(qtp1437654187-1615:ctx-e10e9666 ctx-5839d082) (logid:e1b7ea00) Account [admin] 
is Root Admin or Domain Admin, all APIs are allowed.
   2024-02-02 13:43:05,546 DEBUG [o.a.c.a.StaticRoleBasedAPIAccessChecker] 
(qtp1437654187-1615:ctx-e10e9666 ctx-5839d082) (logid:e1b7ea00) RoleService is 
enabled. We will use it instead of StaticRoleBasedAPIAccessChecker.
   2024-02-02 13:43:05,547 INFO  [o.a.c.r.ApiRateLimitServiceImpl] 
(qtp1437654187-1615:ctx-e10e9666 ctx-5839d082) (logid:e1b7ea00) Account 
[{"accountName":"admin","uuid":"9189844c-0005-11eb-92dc-52540044e551"}] is Root 
Admin, in this case, API limit does not apply.
   2024-02-02 13:43:05,550 WARN  [c.c.a.d.ParamGenericValidationWorker] 
(qtp1437654187-1615:ctx-e10e9666 ctx-5839d082) (logid:e1b7ea00) Received 
unknown parameters for command addHost. Unknown parameters : clustertype 
projectid
   2024-02-02 13:43:05,552 INFO  [c.c.r.ResourceManagerImpl] 
(qtp1437654187-1615:ctx-e10e9666 ctx-5839d082) (logid:e1b7ea00) Trying to add a 
new host at http://compute-2.apac-1b.example.com in data center 14
   2024-02-02 13:43:05,555 DEBUG [c.c.h.k.d.LibvirtServerDiscoverer] 
(qtp1437654187-1615:ctx-e10e9666 ctx-5839d082) (logid:e1b7ea00) Skipping host 
172.17.0.22 because 3f752e3a-b121-34d7-b98e-efa49c276445 is already in the 
database for resource 
3f752e3a-b121-34d7-b98e-efa49c276445-LibvirtComputingResource with ID 
350274d9-d7b1-4cdd-a2e6-fe5f6ee76ec7
   2024-02-02 13:43:05,555 WARN  [c.c.h.k.d.LibvirtServerDiscoverer] 
(qtp1437654187-1615:ctx-e10e9666 ctx-5839d082) (logid:e1b7ea00)  can't setup 
agent, due to com.cloud.utils.exception.CloudRuntimeException: Skipping host 
172.17.0.22 because 3f752e3a-b121-34d7-b98e-efa49c276445 is already in the 
database for resource 
3f752e3a-b121-34d7-b98e-efa49c276445-LibvirtComputingResource with ID 
350274d9-d7b1-4cdd-a2e6-fe5f6ee76ec7 - Skipping host 172.17.0.22 because 
3f752e3a-b121-34d7-b98e-efa49c276445 is already in the database for resource 
3f752e3a-b121-34d7-b98e-efa49c276445-LibvirtComputingResource with ID 
350274d9-d7b1-4cdd-a2e6-fe5f6ee76ec7
   2024-02-02 13:43:05,555 DEBUG [c.c.h.k.d.LibvirtServerDiscoverer] 
(qtp1437654187-1615:ctx-e10e9666 ctx-5839d082) (logid:e1b7ea00)  can't setup 
agent, due to com.cloud.utils.exception.CloudRuntimeException: Skipping host 
172.17.0.22 because 3f752e3a-b121-34d7-b98e-efa49c276445 is already in the 
database for resource 
3f752e3a-b121-34d7-b98e-efa49c276445-LibvirtComputingResource with ID 
350274d9-d7b1-4cdd-a2e6-fe5f6ee76ec7 - Skipping host 172.17.0.22 because 
3f752e3a-b121-34d7-b98e-efa49c276445 is already in the database for resource 
3f752e3a-b121-34d7-b98e-efa49c276445-LibvirtComputingResource with ID 
350274d9-d7b1-4cdd-a2e6-fe5f6ee76ec7
   2024-02-02 13:43:05,556 DEBUG [c.c.r.ResourceManagerImpl] 
(qtp1437654187-1615:ctx-e10e9666 ctx-5839d082) (logid:e1b7ea00) Could not add 
host at [http://compute-2.apac-1b.example.com] with zone [14], pod [14] and 
cluster [11] due to: [ can't setup agent, due to 
com.cloud.utils.exception.CloudRuntimeException: Skipping host 172.17.0.22 
because 3f752e3a-b121-34d7-b98e-efa49c276445 is already in the database for 
resource 3f752e3a-b121-34d7-b98e-efa49c276445-LibvirtComputingResource with ID 
350274d9-d7b1-4cdd-a2e6-fe5f6ee76ec7 - Skipping host 172.17.0.22 because 
3f752e3a-b121-34d7-b98e-efa49c276445 is already in the database for resource 
3f752e3a-b121-34d7-b98e-efa49c276445-LibvirtComputingResource with ID 
350274d9-d7b1-4cdd-a2e6-fe5f6ee76ec7].
   2024-02-02 13:43:05,556 INFO  [c.c.u.e.CSExceptionErrorCode] 
(qtp1437654187-1615:ctx-e10e9666 ctx-5839d082) (logid:e1b7ea00) Could not find 
exception: com.cloud.exception.DiscoveryException in error code list for 
exceptions
   2024-02-02 13:43:05,556 WARN  [o.a.c.a.c.a.h.AddHostCmd] 
(qtp1437654187-1615:ctx-e10e9666 ctx-5839d082) (logid:e1b7ea00) Exception: 
   2024-02-02 13:43:05,558 INFO  [c.c.a.ApiServer] 
(qtp1437654187-1615:ctx-e10e9666 ctx-5839d082) (logid:e1b7ea00) Could not add 
host at [http://compute-2.apac-1b.example.com] with zone [14], pod [14] and 
cluster [11] due to: [ can't setup agent, due to 
com.cloud.utils.exception.CloudRuntimeException: Skipping host 172.17.0.22 
because 3f752e3a-b121-34d7-b98e-efa49c276445 is already in the database for 
resource 3f752e3a-b121-34d7-b98e-efa49c276445-LibvirtComputingResource with ID 
350274d9-d7b1-4cdd-a2e6-fe5f6ee76ec7 - Skipping host 172.17.0.22 because 
3f752e3a-b121-34d7-b98e-efa49c276445 is already in the database for resource 
3f752e3a-b121-34d7-b98e-efa49c276445-LibvirtComputingResource with ID 
350274d9-d7b1-4cdd-a2e6-fe5f6ee76ec7].
   2024-02-02 13:43:05,558 DEBUG [c.c.a.ApiServlet] 
(qtp1437654187-1615:ctx-e10e9666 ctx-5839d082) (logid:e1b7ea00) ===END===  
0:0:0:0:0:0:0:1 -- POST  
command=addHost&response=json&projectid=e61c599d-76fb-4cbc-9179-a47b381f49a2
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to