2025-08-28 17:57:05,753 - INFO - Domain Default found not creating
2025-08-28 17:57:06,083 - INFO - Project ctest-TestBasicPolicy-75812319 not found, creating it
2025-08-28 17:57:06,852 - INFO - Created Project:ctest-TestBasicPolicy-75812319, ID : 3ee9ac20-863f-4442-aaa4-55e4acd3a6d9
2025-08-28 17:57:09,029 - INFO - ================================================================================
2025-08-28 17:57:09,029 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-28 17:57:09,030 - 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-28 17:57:09,356 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with
2025-08-28 17:57:09,357 - INFO - Initial checks done. Running the testcase now
2025-08-28 17:57:09,357 - INFO -
2025-08-28 17:57:10,207 - DEBUG - Response for create_network : {'network': {'id': '4a705c8f-a94f-40bb-abee-d54aa4d345b0', 'name': 'ctest-vn-91369387', 'tenant_id': '3ee9ac20863f4442aaa455e4acd3a6d9', 'project_id': '3ee9ac20863f4442aaa455e4acd3a6d9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75812319', 'ctest-vn-91369387'], 'port_security_enabled': True, 'description': ''}}
2025-08-28 17:57:10,444 - DEBUG - Response for create_subnet : {'subnet': {'id': '08ec80ca-fd24-40bb-961c-7df33610272d', 'name': '', 'tenant_id': '3ee9ac20863f4442aaa455e4acd3a6d9', 'network_id': '4a705c8f-a94f-40bb-abee-d54aa4d345b0', 'ip_version': 4, 'cidr': '155.221.184.64/26', 'allocation_pools': [{'start': '155.221.184.66', 'end': '155.221.184.126'}], 'gateway_ip': '155.221.184.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '155.221.184.66', 'tags': [], 'project_id': '3ee9ac20863f4442aaa455e4acd3a6d9'}}
2025-08-28 17:57:10,464 - INFO - Created VN ctest-vn-91369387
2025-08-28 17:57:10,516 - DEBUG - VN ctest-vn-91369387 UUID is 4a705c8f-a94f-40bb-abee-d54aa4d345b0
2025-08-28 17:57:11,016 - DEBUG - Response for create_network : {'network': {'id': 'ee4f7f05-10b9-4174-ab30-4b9fef809454', 'name': 'ctest-vn-39403156', 'tenant_id': '3ee9ac20863f4442aaa455e4acd3a6d9', 'project_id': '3ee9ac20863f4442aaa455e4acd3a6d9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75812319', 'ctest-vn-39403156'], 'port_security_enabled': True, 'description': ''}}
2025-08-28 17:57:11,239 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a97a88b6-25b8-43e4-b055-03e22423fb31', 'name': '', 'tenant_id': '3ee9ac20863f4442aaa455e4acd3a6d9', 'network_id': 'ee4f7f05-10b9-4174-ab30-4b9fef809454', 'ip_version': 4, 'cidr': '156.59.18.64/26', 'allocation_pools': [{'start': '156.59.18.66', 'end': '156.59.18.126'}], 'gateway_ip': '156.59.18.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.59.18.66', 'tags': [], 'project_id': '3ee9ac20863f4442aaa455e4acd3a6d9'}}
2025-08-28 17:57:11,267 - INFO - Created VN ctest-vn-39403156
2025-08-28 17:57:11,332 - DEBUG - VN ctest-vn-39403156 UUID is ee4f7f05-10b9-4174-ab30-4b9fef809454
2025-08-28 17:57:11,496 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-75812319:ctest-vn-91369387, 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-75812319:ctest-vn-39403156, 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-28 17:57:11,963 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4a705c8f-a94f-40bb-abee-d54aa4d345b0', 'name': 'ctest-vn-91369387', 'tenant_id': '3ee9ac20863f4442aaa455e4acd3a6d9', 'project_id': '3ee9ac20863f4442aaa455e4acd3a6d9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['08ec80ca-fd24-40bb-961c-7df33610272d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75812319', 'ctest-vn-91369387'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-75812319', 'ctest-policy-allow-all-11303583']], 'subnet_ipam': [{'subnet_cidr': '155.221.184.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-28 17:57:12,262 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ee4f7f05-10b9-4174-ab30-4b9fef809454', 'name': 'ctest-vn-39403156', 'tenant_id': '3ee9ac20863f4442aaa455e4acd3a6d9', 'project_id': '3ee9ac20863f4442aaa455e4acd3a6d9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a97a88b6-25b8-43e4-b055-03e22423fb31'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75812319', 'ctest-vn-39403156'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-75812319', 'ctest-policy-allow-all-11303583']], 'subnet_ipam': [{'subnet_cidr': '156.59.18.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-28 17:57:12,416 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-08-28 17:57:12,747 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-08-28 17:57:12,790 - DEBUG - Requesting: http://10.0.0.141:8082/domain/ee867886-2840-4fef-bf1f-acee1c8118fb
2025-08-28 17:57:12,810 - DEBUG - Requesting: http://10.0.0.141:8082/project/3ee9ac20-863f-4442-aaa4-55e4acd3a6d9
2025-08-28 17:57:12,938 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/4a705c8f-a94f-40bb-abee-d54aa4d345b0
2025-08-28 17:57:12,966 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/4a705c8f-a94f-40bb-abee-d54aa4d345b0
2025-08-28 17:57:12,993 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/a4f5de1d-63a2-477e-b0e9-6a7826ce5c63
2025-08-28 17:57:13,012 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/a4f5de1d-63a2-477e-b0e9-6a7826ce5c63
2025-08-28 17:57:13,032 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/562b5b7f-0430-4081-a7f9-6332012843ce
2025-08-28 17:57:13,049 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-28 17:57:13,050 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/4a705c8f-a94f-40bb-abee-d54aa4d345b0
2025-08-28 17:57:13,072 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/a4f5de1d-63a2-477e-b0e9-6a7826ce5c63
2025-08-28 17:57:13,107 - INFO - Verified VN network id 10 for VN 4a705c8f-a94f-40bb-abee-d54aa4d345b0
2025-08-28 17:57:13,107 - INFO - Verifications in API Server for VN ctest-vn-91369387 passed
2025-08-28 17:57:13,107 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/4a705c8f-a94f-40bb-abee-d54aa4d345b0
2025-08-28 17:57:13,129 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/a4f5de1d-63a2-477e-b0e9-6a7826ce5c63
2025-08-28 17:57:13,144 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/a4f5de1d-63a2-477e-b0e9-6a7826ce5c63
2025-08-28 17:57:13,161 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/562b5b7f-0430-4081-a7f9-6332012843ce
2025-08-28 17:57:13,192 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-75812319:ctest-vn-91369387', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-75812319', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5363888928288882875', 'uuid-lslong': '12389074141512418736'}, 'enable': 'true', 'created': '2025-08-28T17:57:10', 'last-modified': '2025-08-28T17:57:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.275648'}
2025-08-28 17:57:13,209 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-28 17:57:13,209 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91369387 passed
2025-08-28 17:57:13,210 - DEBUG - ====Verifying policy data for ctest-vn-91369387 in API_Server ======
2025-08-28 17:57:13,210 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-08-28 17:57:13,223 - DEBUG - Requesting: http://10.0.0.141:8082/domain/ee867886-2840-4fef-bf1f-acee1c8118fb
2025-08-28 17:57:13,258 - DEBUG - Requesting: http://10.0.0.141:8082/project/3ee9ac20-863f-4442-aaa4-55e4acd3a6d9
2025-08-28 17:57:13,365 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/4a705c8f-a94f-40bb-abee-d54aa4d345b0
2025-08-28 17:57:13,379 - DEBUG - ==>Verifying data for policy with id: 0d739f4c-4c3b-4986-8db9-1090209f4a99, fqn: ['default-domain', 'ctest-TestBasicPolicy-75812319', 'ctest-policy-allow-all-11303583']
2025-08-28 17:57:13,379 - INFO - VN ctest-vn-91369387 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-28 17:57:13,380 - DEBUG - Verifying the vn in opserver
2025-08-28 17:57:13,380 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-75812319:ctest-vn-91369387 virtual network link through opserver 10.0.0.141
2025-08-28 17:57:13,380 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-08-28 17:57:13,760 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-08-28 17:57:13,880 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-75812319:ctest-vn-91369387', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-75812319:ctest-vn-91369387?flat'}
2025-08-28 17:57:13,880 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-75812319:ctest-vn-91369387 is found in opserver
2025-08-28 17:57:13,909 - DEBUG - Do not have enough data to verify VN in agent
2025-08-28 17:57:13,925 - DEBUG - VRF ids for VN ctest-vn-91369387: {}
2025-08-28 17:57:13,925 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-08-28 17:57:13,936 - DEBUG - Requesting: http://10.0.0.141:8082/domain/ee867886-2840-4fef-bf1f-acee1c8118fb
2025-08-28 17:57:13,961 - DEBUG - Requesting: http://10.0.0.141:8082/project/3ee9ac20-863f-4442-aaa4-55e4acd3a6d9
2025-08-28 17:57:14,060 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/ee4f7f05-10b9-4174-ab30-4b9fef809454
2025-08-28 17:57:14,084 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/ee4f7f05-10b9-4174-ab30-4b9fef809454
2025-08-28 17:57:14,094 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/a28050fa-b23f-4968-ae40-4d3163291da9
2025-08-28 17:57:14,108 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/a28050fa-b23f-4968-ae40-4d3163291da9
2025-08-28 17:57:14,117 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/29257256-244d-4148-903d-390c4184fcf6
2025-08-28 17:57:14,125 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-28 17:57:14,125 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/ee4f7f05-10b9-4174-ab30-4b9fef809454
2025-08-28 17:57:14,136 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/a28050fa-b23f-4968-ae40-4d3163291da9
2025-08-28 17:57:14,154 - INFO - Verified VN network id 11 for VN ee4f7f05-10b9-4174-ab30-4b9fef809454
2025-08-28 17:57:14,157 - INFO - Verifications in API Server for VN ctest-vn-39403156 passed
2025-08-28 17:57:14,157 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/ee4f7f05-10b9-4174-ab30-4b9fef809454
2025-08-28 17:57:14,168 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/a28050fa-b23f-4968-ae40-4d3163291da9
2025-08-28 17:57:14,175 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/a28050fa-b23f-4968-ae40-4d3163291da9
2025-08-28 17:57:14,182 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/29257256-244d-4148-903d-390c4184fcf6
2025-08-28 17:57:14,195 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-75812319:ctest-vn-39403156', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-75812319', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17172083563919130996', 'uuid-lslong': '12335442529657853012'}, 'enable': 'true', 'created': '2025-08-28T17:57:10', 'last-modified': '2025-08-28T17:57:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.974051'}
2025-08-28 17:57:14,202 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-28 17:57:14,202 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39403156 passed
2025-08-28 17:57:14,202 - DEBUG - ====Verifying policy data for ctest-vn-39403156 in API_Server ======
2025-08-28 17:57:14,203 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-08-28 17:57:14,210 - DEBUG - Requesting: http://10.0.0.141:8082/domain/ee867886-2840-4fef-bf1f-acee1c8118fb
2025-08-28 17:57:14,224 - DEBUG - Requesting: http://10.0.0.141:8082/project/3ee9ac20-863f-4442-aaa4-55e4acd3a6d9
2025-08-28 17:57:14,316 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/ee4f7f05-10b9-4174-ab30-4b9fef809454
2025-08-28 17:57:14,341 - DEBUG - ==>Verifying data for policy with id: 0d739f4c-4c3b-4986-8db9-1090209f4a99, fqn: ['default-domain', 'ctest-TestBasicPolicy-75812319', 'ctest-policy-allow-all-11303583']
2025-08-28 17:57:14,341 - INFO - VN ctest-vn-39403156 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-28 17:57:14,342 - DEBUG - Verifying the vn in opserver
2025-08-28 17:57:14,342 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-75812319:ctest-vn-39403156 virtual network link through opserver 10.0.0.141
2025-08-28 17:57:14,342 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-08-28 17:57:14,357 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-75812319:ctest-vn-39403156', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-75812319:ctest-vn-39403156?flat'}
2025-08-28 17:57:14,357 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-75812319:ctest-vn-39403156 is found in opserver
2025-08-28 17:57:14,373 - DEBUG - Do not have enough data to verify VN in agent
2025-08-28 17:57:14,378 - DEBUG - VRF ids for VN ctest-vn-39403156: {}
2025-08-28 17:57:14,459 - DEBUG - Services list from nova: [