Description of problem: Version-Release number of selected component (if applicable): How reproducible: 100% Prerequisites candlepin : on-premises Steps to repro : Login to on-premises host execute following command to delete “MKT-prads-awesome-s390x-os” /usr/bin/curl -u admin:admin -k --header 'Content-type: application/json' --header 'Accept: application/json' --request DELETE https://localhost:8443/candlepin/subscriptions/9 Expected Result : Above command should remove MKT-prads-awesome-s390x-os” subscription pool from server Actual Result : [root@localhost ~]# /usr/bin/curl -u admin:admin -k --header 'Content-type: application/json' --header 'Accept: application/json' --request DELETE https://localhost:8443/candlepin/subscriptions/9 {"displayMessage":"Runtime Error org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update at org.postgresql.jdbc2.AbstractJdbc2Statement$BatchResultHandler.handleError:2,569"}[root@localhost ~]#
Sachin, always include a snip from the tomcat log please
This is the correct api to hit s/subscriptions/entitlements [root@localhost proxy]# /usr/bin/curl -u admin:admin -k --header 'Content-type: application/json' --header 'Accept: application/json' --request DELETE https://localhost:8443/candlepin/entitlements/6 [root@localhost proxy]#
Created attachment 438263 [details] snip of catlina.out
my fault, My understanding was that Sachin was testing a different scenario here. reopening
No issues with delete of subscription. Closing bug.
Verified using following commands list subscription curl -k -u admin:admin https://localhost:8443/candlepin/subscriptions curl -k -u admin:admin -X delete https://10.65.193.123:8443/candlepin/subscriptions/ff80808131db7d6f0131db7e1cca0071 subscription successfully deleted .
Marking all community bugs modified or beyong as closed.