2025-11-20 13:38:44,628 - INFO - Domain Default found not creating
2025-11-20 13:38:44,795 - INFO - Project ctest-TestBasicPolicy-41448539 not found, creating it
2025-11-20 13:38:45,247 - INFO - Created Project:ctest-TestBasicPolicy-41448539, ID : 8ec9bfd5-2379-447d-a02e-9048d860364a
2025-11-20 13:38:46,714 - INFO - ================================================================================
2025-11-20 13:38:46,714 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-20 13:38:46,714 - 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-11-20 13:38:46,971 - DEBUG - Nothing to compare xmpp stats {'10.0.0.128': {'10.20.0.241': '0'}} with
2025-11-20 13:38:46,971 - INFO - Initial checks done. Running the testcase now
2025-11-20 13:38:46,971 - INFO -
2025-11-20 13:38:47,513 - DEBUG - Response for create_network : {'network': {'id': 'e093f4eb-c6d5-44ed-b610-3d79a57459c3', 'name': 'ctest-vn-45432716', 'tenant_id': '8ec9bfd52379447da02e9048d860364a', 'project_id': '8ec9bfd52379447da02e9048d860364a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41448539', 'ctest-vn-45432716'], 'port_security_enabled': True, 'description': ''}}
2025-11-20 13:38:47,659 - DEBUG - Response for create_subnet : {'subnet': {'id': '5fe634f8-23f6-401c-a8c2-487efcc2d976', 'name': '', 'tenant_id': '8ec9bfd52379447da02e9048d860364a', 'network_id': 'e093f4eb-c6d5-44ed-b610-3d79a57459c3', 'ip_version': 4, 'cidr': '15.199.28.64/26', 'allocation_pools': [{'start': '15.199.28.66', 'end': '15.199.28.126'}], 'gateway_ip': '15.199.28.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '15.199.28.66', 'tags': [], 'project_id': '8ec9bfd52379447da02e9048d860364a'}}
2025-11-20 13:38:47,676 - INFO - Created VN ctest-vn-45432716
2025-11-20 13:38:47,730 - DEBUG - VN ctest-vn-45432716 UUID is e093f4eb-c6d5-44ed-b610-3d79a57459c3
2025-11-20 13:38:48,056 - DEBUG - Response for create_network : {'network': {'id': 'cc058b2a-a992-4616-88bd-3399aba6972e', 'name': 'ctest-vn-97528600', 'tenant_id': '8ec9bfd52379447da02e9048d860364a', 'project_id': '8ec9bfd52379447da02e9048d860364a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41448539', 'ctest-vn-97528600'], 'port_security_enabled': True, 'description': ''}}
2025-11-20 13:38:48,213 - DEBUG - Response for create_subnet : {'subnet': {'id': '53e529f3-6723-43c9-ac6c-5d7ba55f18b6', 'name': '', 'tenant_id': '8ec9bfd52379447da02e9048d860364a', 'network_id': 'cc058b2a-a992-4616-88bd-3399aba6972e', 'ip_version': 4, 'cidr': '54.29.174.64/26', 'allocation_pools': [{'start': '54.29.174.66', 'end': '54.29.174.126'}], 'gateway_ip': '54.29.174.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.29.174.66', 'tags': [], 'project_id': '8ec9bfd52379447da02e9048d860364a'}}
2025-11-20 13:38:48,230 - INFO - Created VN ctest-vn-97528600
2025-11-20 13:38:48,282 - DEBUG - VN ctest-vn-97528600 UUID is cc058b2a-a992-4616-88bd-3399aba6972e
2025-11-20 13:38:48,434 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-41448539:ctest-vn-45432716, 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-41448539:ctest-vn-97528600, 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-11-20 13:38:48,725 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e093f4eb-c6d5-44ed-b610-3d79a57459c3', 'name': 'ctest-vn-45432716', 'tenant_id': '8ec9bfd52379447da02e9048d860364a', 'project_id': '8ec9bfd52379447da02e9048d860364a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5fe634f8-23f6-401c-a8c2-487efcc2d976'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41448539', 'ctest-vn-45432716'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41448539', 'ctest-policy-allow-all-32756862']], 'subnet_ipam': [{'subnet_cidr': '15.199.28.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-20 13:38:48,951 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cc058b2a-a992-4616-88bd-3399aba6972e', 'name': 'ctest-vn-97528600', 'tenant_id': '8ec9bfd52379447da02e9048d860364a', 'project_id': '8ec9bfd52379447da02e9048d860364a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['53e529f3-6723-43c9-ac6c-5d7ba55f18b6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41448539', 'ctest-vn-97528600'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41448539', 'ctest-policy-allow-all-32756862']], 'subnet_ipam': [{'subnet_cidr': '54.29.174.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-20 13:38:49,122 - DEBUG - Requesting: http://10.0.0.128:8082/domains
2025-11-20 13:38:49,419 - DEBUG - Requesting: http://10.0.0.128:8082/domains
2025-11-20 13:38:49,452 - DEBUG - Requesting: http://10.0.0.128:8082/domain/5f962690-5bd6-4cb0-a686-abcea7def5d0
2025-11-20 13:38:49,465 - DEBUG - Requesting: http://10.0.0.128:8082/project/8ec9bfd5-2379-447d-a02e-9048d860364a
2025-11-20 13:38:49,536 - DEBUG - Requesting: http://10.0.0.128:8082/virtual-network/e093f4eb-c6d5-44ed-b610-3d79a57459c3
2025-11-20 13:38:49,547 - DEBUG - Requesting: http://10.0.0.128:8082/virtual-network/e093f4eb-c6d5-44ed-b610-3d79a57459c3
2025-11-20 13:38:49,556 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/db9985c7-fc39-4917-84c4-90ae9b9c7a24
2025-11-20 13:38:49,563 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/db9985c7-fc39-4917-84c4-90ae9b9c7a24
2025-11-20 13:38:49,569 - DEBUG - Requesting: http://10.0.0.128:8082/route-target/2c6437e3-5f71-4f45-b555-6371ae5be07a
2025-11-20 13:38:49,576 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-20 13:38:49,576 - DEBUG - Requesting: http://10.0.0.128:8082/virtual-network/e093f4eb-c6d5-44ed-b610-3d79a57459c3
2025-11-20 13:38:49,586 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/db9985c7-fc39-4917-84c4-90ae9b9c7a24
2025-11-20 13:38:49,603 - INFO - Verified VN network id 11 for VN e093f4eb-c6d5-44ed-b610-3d79a57459c3
2025-11-20 13:38:49,603 - INFO - Verifications in API Server for VN ctest-vn-45432716 passed
2025-11-20 13:38:49,604 - DEBUG - Requesting: http://10.0.0.128:8082/virtual-network/e093f4eb-c6d5-44ed-b610-3d79a57459c3
2025-11-20 13:38:49,615 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/db9985c7-fc39-4917-84c4-90ae9b9c7a24
2025-11-20 13:38:49,623 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/db9985c7-fc39-4917-84c4-90ae9b9c7a24
2025-11-20 13:38:49,630 - DEBUG - Requesting: http://10.0.0.128:8082/route-target/2c6437e3-5f71-4f45-b555-6371ae5be07a
2025-11-20 13:38:49,642 - DEBUG - Control-node 10.0.0.128 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41448539:ctest-vn-45432716', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41448539', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16182547179562681581', 'uuid-lslong': '13119053307206457795'}, 'enable': 'true', 'created': '2025-11-20T13:38:47', 'last-modified': '2025-11-20T13:38:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.943906'}
2025-11-20 13:38:49,648 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-20 13:38:49,648 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45432716 passed
2025-11-20 13:38:49,648 - DEBUG - ====Verifying policy data for ctest-vn-45432716 in API_Server ======
2025-11-20 13:38:49,648 - DEBUG - Requesting: http://10.0.0.128:8082/domains
2025-11-20 13:38:49,656 - DEBUG - Requesting: http://10.0.0.128:8082/domain/5f962690-5bd6-4cb0-a686-abcea7def5d0
2025-11-20 13:38:49,668 - DEBUG - Requesting: http://10.0.0.128:8082/project/8ec9bfd5-2379-447d-a02e-9048d860364a
2025-11-20 13:38:49,741 - DEBUG - Requesting: http://10.0.0.128:8082/virtual-network/e093f4eb-c6d5-44ed-b610-3d79a57459c3
2025-11-20 13:38:49,750 - DEBUG - ==>Verifying data for policy with id: 03416a0b-edf5-48c9-a618-9eeec4da96e4, fqn: ['default-domain', 'ctest-TestBasicPolicy-41448539', 'ctest-policy-allow-all-32756862']
2025-11-20 13:38:49,750 - INFO - VN ctest-vn-45432716 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-20 13:38:49,750 - DEBUG - Verifying the vn in opserver
2025-11-20 13:38:49,750 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41448539:ctest-vn-45432716 virtual network link through opserver 10.0.0.128
2025-11-20 13:38:49,750 - DEBUG - Requesting: http://10.0.0.128:8081/analytics/uves/virtual-networks
2025-11-20 13:38:50,055 - DEBUG - Requesting: http://10.0.0.128:8081/analytics/uves/virtual-networks
2025-11-20 13:38:50,118 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41448539:ctest-vn-45432716', 'href': 'http://10.0.0.128:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41448539:ctest-vn-45432716?flat'}
2025-11-20 13:38:50,118 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41448539:ctest-vn-45432716 is found in opserver
2025-11-20 13:38:50,130 - DEBUG - Do not have enough data to verify VN in agent
2025-11-20 13:38:50,135 - DEBUG - VRF ids for VN ctest-vn-45432716: {}
2025-11-20 13:38:50,135 - DEBUG - Requesting: http://10.0.0.128:8082/domains
2025-11-20 13:38:50,141 - DEBUG - Requesting: http://10.0.0.128:8082/domain/5f962690-5bd6-4cb0-a686-abcea7def5d0
2025-11-20 13:38:50,152 - DEBUG - Requesting: http://10.0.0.128:8082/project/8ec9bfd5-2379-447d-a02e-9048d860364a
2025-11-20 13:38:50,242 - DEBUG - Requesting: http://10.0.0.128:8082/virtual-network/cc058b2a-a992-4616-88bd-3399aba6972e
2025-11-20 13:38:50,256 - DEBUG - Requesting: http://10.0.0.128:8082/virtual-network/cc058b2a-a992-4616-88bd-3399aba6972e
2025-11-20 13:38:50,266 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/81c983c9-6203-405f-877f-8fc6a35d8900
2025-11-20 13:38:50,274 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/81c983c9-6203-405f-877f-8fc6a35d8900
2025-11-20 13:38:50,281 - DEBUG - Requesting: http://10.0.0.128:8082/route-target/f896c6d0-7864-4f03-9a33-06bb8156379b
2025-11-20 13:38:50,287 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-20 13:38:50,287 - DEBUG - Requesting: http://10.0.0.128:8082/virtual-network/cc058b2a-a992-4616-88bd-3399aba6972e
2025-11-20 13:38:50,295 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/81c983c9-6203-405f-877f-8fc6a35d8900
2025-11-20 13:38:50,307 - INFO - Verified VN network id 12 for VN cc058b2a-a992-4616-88bd-3399aba6972e
2025-11-20 13:38:50,307 - INFO - Verifications in API Server for VN ctest-vn-97528600 passed
2025-11-20 13:38:50,307 - DEBUG - Requesting: http://10.0.0.128:8082/virtual-network/cc058b2a-a992-4616-88bd-3399aba6972e
2025-11-20 13:38:50,315 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/81c983c9-6203-405f-877f-8fc6a35d8900
2025-11-20 13:38:50,323 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/81c983c9-6203-405f-877f-8fc6a35d8900
2025-11-20 13:38:50,329 - DEBUG - Requesting: http://10.0.0.128:8082/route-target/f896c6d0-7864-4f03-9a33-06bb8156379b
2025-11-20 13:38:50,343 - DEBUG - Control-node 10.0.0.128 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41448539:ctest-vn-97528600', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41448539', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14701309573970675222', 'uuid-lslong': '9853088294859347758'}, 'enable': 'true', 'created': '2025-11-20T13:38:48', 'last-modified': '2025-11-20T13:38:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.416076'}
2025-11-20 13:38:50,350 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-20 13:38:50,350 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97528600 passed
2025-11-20 13:38:50,350 - DEBUG - ====Verifying policy data for ctest-vn-97528600 in API_Server ======
2025-11-20 13:38:50,350 - DEBUG - Requesting: http://10.0.0.128:8082/domains
2025-11-20 13:38:50,356 - DEBUG - Requesting: http://10.0.0.128:8082/domain/5f962690-5bd6-4cb0-a686-abcea7def5d0
2025-11-20 13:38:50,371 - DEBUG - Requesting: http://10.0.0.128:8082/project/8ec9bfd5-2379-447d-a02e-9048d860364a
2025-11-20 13:38:50,443 - DEBUG - Requesting: http://10.0.0.128:8082/virtual-network/cc058b2a-a992-4616-88bd-3399aba6972e
2025-11-20 13:38:50,453 - DEBUG - ==>Verifying data for policy with id: 03416a0b-edf5-48c9-a618-9eeec4da96e4, fqn: ['default-domain', 'ctest-TestBasicPolicy-41448539', 'ctest-policy-allow-all-32756862']
2025-11-20 13:38:50,453 - INFO - VN ctest-vn-97528600 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-20 13:38:50,453 - DEBUG - Verifying the vn in opserver
2025-11-20 13:38:50,454 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41448539:ctest-vn-97528600 virtual network link through opserver 10.0.0.128
2025-11-20 13:38:50,454 - DEBUG - Requesting: http://10.0.0.128:8081/analytics/uves/virtual-networks
2025-11-20 13:38:50,465 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41448539:ctest-vn-97528600', 'href': 'http://10.0.0.128:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41448539:ctest-vn-97528600?flat'}
2025-11-20 13:38:50,465 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41448539:ctest-vn-97528600 is found in opserver
2025-11-20 13:38:50,475 - DEBUG - Do not have enough data to verify VN in agent
2025-11-20 13:38:50,480 - DEBUG - VRF ids for VN ctest-vn-97528600: {}
2025-11-20 13:38:50,540 - DEBUG - Services list from nova: [