2025-08-14 13:03:38,858 - INFO - Domain Default found not creating
2025-08-14 13:03:38,991 - INFO - Project ctest-TestBasicPolicy-76832846 not found, creating it
2025-08-14 13:03:39,417 - INFO - Created Project:ctest-TestBasicPolicy-76832846, ID : 129ff15a-2e2f-482d-abe5-ee7e11fe0ae9
2025-08-14 13:03:40,805 - INFO - ================================================================================
2025-08-14 13:03:40,806 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-14 13:03:40,806 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2025-08-14 13:03:41,059 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with
2025-08-14 13:03:41,059 - INFO - Initial checks done. Running the testcase now
2025-08-14 13:03:41,059 - INFO -
2025-08-14 13:03:41,577 - DEBUG - Response for create_network : {'network': {'id': '632b3cb2-98da-4b97-90f7-35d3d54c3446', 'name': 'ctest-vn-64389481', 'tenant_id': '129ff15a2e2f482dabe5ee7e11fe0ae9', 'project_id': '129ff15a2e2f482dabe5ee7e11fe0ae9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76832846', 'ctest-vn-64389481'], 'port_security_enabled': True, 'description': ''}}
2025-08-14 13:03:41,770 - DEBUG - Response for create_subnet : {'subnet': {'id': '5b3c4cff-60c3-4bf9-b0c4-d378dc358369', 'name': '', 'tenant_id': '129ff15a2e2f482dabe5ee7e11fe0ae9', 'network_id': '632b3cb2-98da-4b97-90f7-35d3d54c3446', 'ip_version': 4, 'cidr': '143.127.193.128/26', 'allocation_pools': [{'start': '143.127.193.130', 'end': '143.127.193.190'}], 'gateway_ip': '143.127.193.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '143.127.193.130', 'tags': [], 'project_id': '129ff15a2e2f482dabe5ee7e11fe0ae9'}}
2025-08-14 13:03:41,787 - INFO - Created VN ctest-vn-64389481
2025-08-14 13:03:41,837 - DEBUG - VN ctest-vn-64389481 UUID is 632b3cb2-98da-4b97-90f7-35d3d54c3446
2025-08-14 13:03:42,141 - DEBUG - Response for create_network : {'network': {'id': '8d3ba50d-b059-431c-bce5-e82ba92cf071', 'name': 'ctest-vn-94172574', 'tenant_id': '129ff15a2e2f482dabe5ee7e11fe0ae9', 'project_id': '129ff15a2e2f482dabe5ee7e11fe0ae9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76832846', 'ctest-vn-94172574'], 'port_security_enabled': True, 'description': ''}}
2025-08-14 13:03:42,334 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c93f7095-1d38-4b4e-b2ed-7e7f48c01ea1', 'name': '', 'tenant_id': '129ff15a2e2f482dabe5ee7e11fe0ae9', 'network_id': '8d3ba50d-b059-431c-bce5-e82ba92cf071', 'ip_version': 4, 'cidr': '65.244.17.128/26', 'allocation_pools': [{'start': '65.244.17.130', 'end': '65.244.17.190'}], 'gateway_ip': '65.244.17.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '65.244.17.130', 'tags': [], 'project_id': '129ff15a2e2f482dabe5ee7e11fe0ae9'}}
2025-08-14 13:03:42,350 - INFO - Created VN ctest-vn-94172574
2025-08-14 13:03:42,401 - DEBUG - VN ctest-vn-94172574 UUID is 8d3ba50d-b059-431c-bce5-e82ba92cf071
2025-08-14 13:03:42,553 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-76832846:ctest-vn-64389481, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-76832846:ctest-vn-94172574, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2025-08-14 13:03:42,837 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '632b3cb2-98da-4b97-90f7-35d3d54c3446', 'name': 'ctest-vn-64389481', 'tenant_id': '129ff15a2e2f482dabe5ee7e11fe0ae9', 'project_id': '129ff15a2e2f482dabe5ee7e11fe0ae9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5b3c4cff-60c3-4bf9-b0c4-d378dc358369'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76832846', 'ctest-vn-64389481'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76832846', 'ctest-policy-allow-all-09237096']], 'subnet_ipam': [{'subnet_cidr': '143.127.193.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-14 13:03:43,108 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8d3ba50d-b059-431c-bce5-e82ba92cf071', 'name': 'ctest-vn-94172574', 'tenant_id': '129ff15a2e2f482dabe5ee7e11fe0ae9', 'project_id': '129ff15a2e2f482dabe5ee7e11fe0ae9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c93f7095-1d38-4b4e-b2ed-7e7f48c01ea1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76832846', 'ctest-vn-94172574'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76832846', 'ctest-policy-allow-all-09237096']], 'subnet_ipam': [{'subnet_cidr': '65.244.17.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-14 13:03:43,253 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-14 13:03:43,550 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-14 13:03:43,583 - DEBUG - Requesting: http://10.0.0.249:8082/domain/773ff5d6-597b-47dc-8c7e-5427535535b7
2025-08-14 13:03:43,595 - DEBUG - Requesting: http://10.0.0.249:8082/project/129ff15a-2e2f-482d-abe5-ee7e11fe0ae9
2025-08-14 13:03:43,668 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/632b3cb2-98da-4b97-90f7-35d3d54c3446
2025-08-14 13:03:43,678 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/632b3cb2-98da-4b97-90f7-35d3d54c3446
2025-08-14 13:03:43,687 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/20a1d8e8-7cbc-47f8-a6aa-c7992e961e35
2025-08-14 13:03:43,693 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/20a1d8e8-7cbc-47f8-a6aa-c7992e961e35
2025-08-14 13:03:43,699 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/f4c64834-bb44-4b8c-935b-3314e2ec6c30
2025-08-14 13:03:43,704 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-14 13:03:43,704 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/632b3cb2-98da-4b97-90f7-35d3d54c3446
2025-08-14 13:03:43,712 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/20a1d8e8-7cbc-47f8-a6aa-c7992e961e35
2025-08-14 13:03:43,724 - INFO - Verified VN network id 11 for VN 632b3cb2-98da-4b97-90f7-35d3d54c3446
2025-08-14 13:03:43,724 - INFO - Verifications in API Server for VN ctest-vn-64389481 passed
2025-08-14 13:03:43,724 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/632b3cb2-98da-4b97-90f7-35d3d54c3446
2025-08-14 13:03:43,732 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/20a1d8e8-7cbc-47f8-a6aa-c7992e961e35
2025-08-14 13:03:43,738 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/20a1d8e8-7cbc-47f8-a6aa-c7992e961e35
2025-08-14 13:03:43,744 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/f4c64834-bb44-4b8c-935b-3314e2ec6c30
2025-08-14 13:03:43,755 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76832846:ctest-vn-64389481', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76832846', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7145871971519712151', 'uuid-lslong': '10445877044642067526'}, 'enable': 'true', 'created': '2025-08-14T13:03:41', 'last-modified': '2025-08-14T13:03:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.939641'}
2025-08-14 13:03:43,761 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-14 13:03:43,761 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64389481 passed
2025-08-14 13:03:43,761 - DEBUG - ====Verifying policy data for ctest-vn-64389481 in API_Server ======
2025-08-14 13:03:43,761 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-14 13:03:43,766 - DEBUG - Requesting: http://10.0.0.249:8082/domain/773ff5d6-597b-47dc-8c7e-5427535535b7
2025-08-14 13:03:43,776 - DEBUG - Requesting: http://10.0.0.249:8082/project/129ff15a-2e2f-482d-abe5-ee7e11fe0ae9
2025-08-14 13:03:43,844 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/632b3cb2-98da-4b97-90f7-35d3d54c3446
2025-08-14 13:03:43,853 - DEBUG - ==>Verifying data for policy with id: bfa86ed4-4d41-4ae2-af48-d47163219bdb, fqn: ['default-domain', 'ctest-TestBasicPolicy-76832846', 'ctest-policy-allow-all-09237096']
2025-08-14 13:03:43,853 - INFO - VN ctest-vn-64389481 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-14 13:03:43,853 - DEBUG - Verifying the vn in opserver
2025-08-14 13:03:43,853 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76832846:ctest-vn-64389481 virtual network link through opserver 10.0.0.249
2025-08-14 13:03:43,853 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-08-14 13:03:44,147 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-08-14 13:03:44,198 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76832846:ctest-vn-64389481', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76832846:ctest-vn-64389481?flat'}
2025-08-14 13:03:44,198 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76832846:ctest-vn-64389481 is found in opserver
2025-08-14 13:03:44,208 - DEBUG - Do not have enough data to verify VN in agent
2025-08-14 13:03:44,213 - DEBUG - VRF ids for VN ctest-vn-64389481: {}
2025-08-14 13:03:44,213 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-14 13:03:44,219 - DEBUG - Requesting: http://10.0.0.249:8082/domain/773ff5d6-597b-47dc-8c7e-5427535535b7
2025-08-14 13:03:44,229 - DEBUG - Requesting: http://10.0.0.249:8082/project/129ff15a-2e2f-482d-abe5-ee7e11fe0ae9
2025-08-14 13:03:44,300 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/8d3ba50d-b059-431c-bce5-e82ba92cf071
2025-08-14 13:03:44,311 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/8d3ba50d-b059-431c-bce5-e82ba92cf071
2025-08-14 13:03:44,319 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/087fcf8b-7ea6-4b5e-90a6-e0f740b2aa6e
2025-08-14 13:03:44,326 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/087fcf8b-7ea6-4b5e-90a6-e0f740b2aa6e
2025-08-14 13:03:44,332 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/acc4a8ea-e537-4369-a793-504f7c03c905
2025-08-14 13:03:44,338 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-14 13:03:44,338 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/8d3ba50d-b059-431c-bce5-e82ba92cf071
2025-08-14 13:03:44,346 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/087fcf8b-7ea6-4b5e-90a6-e0f740b2aa6e
2025-08-14 13:03:44,358 - INFO - Verified VN network id 12 for VN 8d3ba50d-b059-431c-bce5-e82ba92cf071
2025-08-14 13:03:44,358 - INFO - Verifications in API Server for VN ctest-vn-94172574 passed
2025-08-14 13:03:44,358 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/8d3ba50d-b059-431c-bce5-e82ba92cf071
2025-08-14 13:03:44,367 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/087fcf8b-7ea6-4b5e-90a6-e0f740b2aa6e
2025-08-14 13:03:44,373 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/087fcf8b-7ea6-4b5e-90a6-e0f740b2aa6e
2025-08-14 13:03:44,380 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/acc4a8ea-e537-4369-a793-504f7c03c905
2025-08-14 13:03:44,392 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76832846:ctest-vn-94172574', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76832846', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10176909261185565468', 'uuid-lslong': '13611540723016724593'}, 'enable': 'true', 'created': '2025-08-14T13:03:42', 'last-modified': '2025-08-14T13:03:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.352904'}
2025-08-14 13:03:44,399 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-14 13:03:44,400 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94172574 passed
2025-08-14 13:03:44,400 - DEBUG - ====Verifying policy data for ctest-vn-94172574 in API_Server ======
2025-08-14 13:03:44,400 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-14 13:03:44,405 - DEBUG - Requesting: http://10.0.0.249:8082/domain/773ff5d6-597b-47dc-8c7e-5427535535b7
2025-08-14 13:03:44,416 - DEBUG - Requesting: http://10.0.0.249:8082/project/129ff15a-2e2f-482d-abe5-ee7e11fe0ae9
2025-08-14 13:03:44,488 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/8d3ba50d-b059-431c-bce5-e82ba92cf071
2025-08-14 13:03:44,497 - DEBUG - ==>Verifying data for policy with id: bfa86ed4-4d41-4ae2-af48-d47163219bdb, fqn: ['default-domain', 'ctest-TestBasicPolicy-76832846', 'ctest-policy-allow-all-09237096']
2025-08-14 13:03:44,497 - INFO - VN ctest-vn-94172574 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-14 13:03:44,497 - DEBUG - Verifying the vn in opserver
2025-08-14 13:03:44,497 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76832846:ctest-vn-94172574 virtual network link through opserver 10.0.0.249
2025-08-14 13:03:44,497 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-08-14 13:03:44,507 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76832846:ctest-vn-94172574', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76832846:ctest-vn-94172574?flat'}
2025-08-14 13:03:44,507 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76832846:ctest-vn-94172574 is found in opserver
2025-08-14 13:03:44,517 - DEBUG - Do not have enough data to verify VN in agent
2025-08-14 13:03:44,521 - DEBUG - VRF ids for VN ctest-vn-94172574: {}
2025-08-14 13:03:44,574 - DEBUG - Services list from nova: [