2025-07-01 17:25:21,228 - INFO - Domain Default found not creating
2025-07-01 17:25:21,584 - INFO - Project ctest-TestBasicPolicy-86222857 not found, creating it
2025-07-01 17:25:22,308 - INFO - Created Project:ctest-TestBasicPolicy-86222857, ID : f7b2ead9-739d-4c90-9a08-14332d259b07
2025-07-01 17:25:24,565 - INFO - ================================================================================
2025-07-01 17:25:24,565 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-01 17:25:24,566 - 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-07-01 17:25:24,900 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-07-01 17:25:24,900 - INFO - Initial checks done. Running the testcase now
2025-07-01 17:25:24,900 - INFO -
2025-07-01 17:25:25,968 - DEBUG - Response for create_network : {'network': {'id': '3848f4f0-d3d2-43fc-8e4b-0abe57291311', 'name': 'ctest-vn-34209360', 'tenant_id': 'f7b2ead9739d4c909a0814332d259b07', 'project_id': 'f7b2ead9739d4c909a0814332d259b07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86222857', 'ctest-vn-34209360'], 'port_security_enabled': True, 'description': ''}}
2025-07-01 17:25:26,446 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd08c500c-99c2-46c7-971e-a934eb7f8d5d', 'name': '', 'tenant_id': 'f7b2ead9739d4c909a0814332d259b07', 'network_id': '3848f4f0-d3d2-43fc-8e4b-0abe57291311', 'ip_version': 4, 'cidr': '109.230.254.128/26', 'allocation_pools': [{'start': '109.230.254.130', 'end': '109.230.254.190'}], 'gateway_ip': '109.230.254.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '109.230.254.130', 'tags': [], 'project_id': 'f7b2ead9739d4c909a0814332d259b07'}}
2025-07-01 17:25:26,474 - INFO - Created VN ctest-vn-34209360
2025-07-01 17:25:26,528 - DEBUG - VN ctest-vn-34209360 UUID is 3848f4f0-d3d2-43fc-8e4b-0abe57291311
2025-07-01 17:25:26,945 - DEBUG - Response for create_network : {'network': {'id': '3fe77f8b-dfcc-4b22-98e4-cd0e4900473a', 'name': 'ctest-vn-48212341', 'tenant_id': 'f7b2ead9739d4c909a0814332d259b07', 'project_id': 'f7b2ead9739d4c909a0814332d259b07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86222857', 'ctest-vn-48212341'], 'port_security_enabled': True, 'description': ''}}
2025-07-01 17:25:27,221 - DEBUG - Response for create_subnet : {'subnet': {'id': '7136ca1a-ceb3-400c-a546-51e46ff20d0a', 'name': '', 'tenant_id': 'f7b2ead9739d4c909a0814332d259b07', 'network_id': '3fe77f8b-dfcc-4b22-98e4-cd0e4900473a', 'ip_version': 4, 'cidr': '120.121.142.0/26', 'allocation_pools': [{'start': '120.121.142.2', 'end': '120.121.142.62'}], 'gateway_ip': '120.121.142.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '120.121.142.2', 'tags': [], 'project_id': 'f7b2ead9739d4c909a0814332d259b07'}}
2025-07-01 17:25:27,253 - INFO - Created VN ctest-vn-48212341
2025-07-01 17:25:27,312 - DEBUG - VN ctest-vn-48212341 UUID is 3fe77f8b-dfcc-4b22-98e4-cd0e4900473a
2025-07-01 17:25:27,497 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-86222857:ctest-vn-34209360, 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-86222857:ctest-vn-48212341, 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-07-01 17:25:27,998 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3848f4f0-d3d2-43fc-8e4b-0abe57291311', 'name': 'ctest-vn-34209360', 'tenant_id': 'f7b2ead9739d4c909a0814332d259b07', 'project_id': 'f7b2ead9739d4c909a0814332d259b07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d08c500c-99c2-46c7-971e-a934eb7f8d5d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86222857', 'ctest-vn-34209360'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-86222857', 'ctest-policy-allow-all-17885661']], 'subnet_ipam': [{'subnet_cidr': '109.230.254.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-01 17:25:28,341 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3fe77f8b-dfcc-4b22-98e4-cd0e4900473a', 'name': 'ctest-vn-48212341', 'tenant_id': 'f7b2ead9739d4c909a0814332d259b07', 'project_id': 'f7b2ead9739d4c909a0814332d259b07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7136ca1a-ceb3-400c-a546-51e46ff20d0a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86222857', 'ctest-vn-48212341'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-86222857', 'ctest-policy-allow-all-17885661']], 'subnet_ipam': [{'subnet_cidr': '120.121.142.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-01 17:25:28,504 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-01 17:25:28,839 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-01 17:25:28,884 - DEBUG - Requesting: http://10.0.0.254:8082/domain/00636da5-196a-4861-9626-288ce411ecad
2025-07-01 17:25:28,920 - DEBUG - Requesting: http://10.0.0.254:8082/project/f7b2ead9-739d-4c90-9a08-14332d259b07
2025-07-01 17:25:29,027 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3848f4f0-d3d2-43fc-8e4b-0abe57291311
2025-07-01 17:25:29,057 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3848f4f0-d3d2-43fc-8e4b-0abe57291311
2025-07-01 17:25:29,085 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bad57b42-fdae-402e-95d7-b559c738a498
2025-07-01 17:25:29,102 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bad57b42-fdae-402e-95d7-b559c738a498
2025-07-01 17:25:29,119 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3c057ada-cccd-4cd9-9245-bfdfda63b91c
2025-07-01 17:25:29,141 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-01 17:25:29,142 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3848f4f0-d3d2-43fc-8e4b-0abe57291311
2025-07-01 17:25:29,170 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bad57b42-fdae-402e-95d7-b559c738a498
2025-07-01 17:25:29,200 - INFO - Verified VN network id 9 for VN 3848f4f0-d3d2-43fc-8e4b-0abe57291311
2025-07-01 17:25:29,201 - INFO - Verifications in API Server for VN ctest-vn-34209360 passed
2025-07-01 17:25:29,201 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3848f4f0-d3d2-43fc-8e4b-0abe57291311
2025-07-01 17:25:29,224 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bad57b42-fdae-402e-95d7-b559c738a498
2025-07-01 17:25:29,242 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bad57b42-fdae-402e-95d7-b559c738a498
2025-07-01 17:25:29,258 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3c057ada-cccd-4cd9-9245-bfdfda63b91c
2025-07-01 17:25:29,290 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-86222857:ctest-vn-34209360', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-86222857', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4055760779630232572', 'uuid-lslong': '10253300789261439761'}, 'enable': 'true', 'created': '2025-07-01T17:25:25', 'last-modified': '2025-07-01T17:25:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.353240'}
2025-07-01 17:25:29,309 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-01 17:25:29,310 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34209360 passed
2025-07-01 17:25:29,310 - DEBUG - ====Verifying policy data for ctest-vn-34209360 in API_Server ======
2025-07-01 17:25:29,310 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-01 17:25:29,324 - DEBUG - Requesting: http://10.0.0.254:8082/domain/00636da5-196a-4861-9626-288ce411ecad
2025-07-01 17:25:29,360 - DEBUG - Requesting: http://10.0.0.254:8082/project/f7b2ead9-739d-4c90-9a08-14332d259b07
2025-07-01 17:25:29,485 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3848f4f0-d3d2-43fc-8e4b-0abe57291311
2025-07-01 17:25:29,514 - DEBUG - ==>Verifying data for policy with id: 041081fa-cae1-492f-a099-f0e14f4de580, fqn: ['default-domain', 'ctest-TestBasicPolicy-86222857', 'ctest-policy-allow-all-17885661']
2025-07-01 17:25:29,514 - INFO - VN ctest-vn-34209360 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-01 17:25:29,514 - DEBUG - Verifying the vn in opserver
2025-07-01 17:25:29,514 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-86222857:ctest-vn-34209360 virtual network link through opserver 10.0.0.254
2025-07-01 17:25:29,515 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-01 17:25:29,821 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-01 17:25:29,902 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-86222857:ctest-vn-34209360', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-86222857:ctest-vn-34209360?flat'}
2025-07-01 17:25:29,902 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-86222857:ctest-vn-34209360 is found in opserver
2025-07-01 17:25:29,918 - DEBUG - Do not have enough data to verify VN in agent
2025-07-01 17:25:29,924 - DEBUG - VRF ids for VN ctest-vn-34209360: {}
2025-07-01 17:25:29,924 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-01 17:25:29,932 - DEBUG - Requesting: http://10.0.0.254:8082/domain/00636da5-196a-4861-9626-288ce411ecad
2025-07-01 17:25:29,954 - DEBUG - Requesting: http://10.0.0.254:8082/project/f7b2ead9-739d-4c90-9a08-14332d259b07
2025-07-01 17:25:30,060 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3fe77f8b-dfcc-4b22-98e4-cd0e4900473a
2025-07-01 17:25:30,086 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3fe77f8b-dfcc-4b22-98e4-cd0e4900473a
2025-07-01 17:25:30,106 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5c95b5c5-ecc7-45f4-8d74-7ccc5b00b572
2025-07-01 17:25:30,123 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5c95b5c5-ecc7-45f4-8d74-7ccc5b00b572
2025-07-01 17:25:30,139 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0c1d139e-0010-4212-a6d4-0a999f774997
2025-07-01 17:25:30,156 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-01 17:25:30,156 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3fe77f8b-dfcc-4b22-98e4-cd0e4900473a
2025-07-01 17:25:30,183 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5c95b5c5-ecc7-45f4-8d74-7ccc5b00b572
2025-07-01 17:25:30,211 - INFO - Verified VN network id 10 for VN 3fe77f8b-dfcc-4b22-98e4-cd0e4900473a
2025-07-01 17:25:30,211 - INFO - Verifications in API Server for VN ctest-vn-48212341 passed
2025-07-01 17:25:30,211 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3fe77f8b-dfcc-4b22-98e4-cd0e4900473a
2025-07-01 17:25:30,225 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5c95b5c5-ecc7-45f4-8d74-7ccc5b00b572
2025-07-01 17:25:30,237 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5c95b5c5-ecc7-45f4-8d74-7ccc5b00b572
2025-07-01 17:25:30,249 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0c1d139e-0010-4212-a6d4-0a999f774997
2025-07-01 17:25:30,270 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-86222857:ctest-vn-48212341', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-86222857', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4604789382741510946', 'uuid-lslong': '11017156049693067066'}, 'enable': 'true', 'created': '2025-07-01T17:25:26', 'last-modified': '2025-07-01T17:25:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.974447'}
2025-07-01 17:25:30,280 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-01 17:25:30,280 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48212341 passed
2025-07-01 17:25:30,281 - DEBUG - ====Verifying policy data for ctest-vn-48212341 in API_Server ======
2025-07-01 17:25:30,281 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-01 17:25:30,293 - DEBUG - Requesting: http://10.0.0.254:8082/domain/00636da5-196a-4861-9626-288ce411ecad
2025-07-01 17:25:30,311 - DEBUG - Requesting: http://10.0.0.254:8082/project/f7b2ead9-739d-4c90-9a08-14332d259b07
2025-07-01 17:25:30,427 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3fe77f8b-dfcc-4b22-98e4-cd0e4900473a
2025-07-01 17:25:30,448 - DEBUG - ==>Verifying data for policy with id: 041081fa-cae1-492f-a099-f0e14f4de580, fqn: ['default-domain', 'ctest-TestBasicPolicy-86222857', 'ctest-policy-allow-all-17885661']
2025-07-01 17:25:30,448 - INFO - VN ctest-vn-48212341 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-01 17:25:30,448 - DEBUG - Verifying the vn in opserver
2025-07-01 17:25:30,448 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-86222857:ctest-vn-48212341 virtual network link through opserver 10.0.0.254
2025-07-01 17:25:30,449 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-01 17:25:30,469 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-86222857:ctest-vn-48212341', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-86222857:ctest-vn-48212341?flat'}
2025-07-01 17:25:30,469 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-86222857:ctest-vn-48212341 is found in opserver
2025-07-01 17:25:30,489 - DEBUG - Do not have enough data to verify VN in agent
2025-07-01 17:25:30,497 - DEBUG - VRF ids for VN ctest-vn-48212341: {}
2025-07-01 17:25:30,628 - DEBUG - Services list from nova: [