2025-08-30 21:56:08,581 - INFO - Domain Default found not creating
2025-08-30 21:56:08,709 - INFO - Project ctest-TestBasicPolicy-66753212 not found, creating it
2025-08-30 21:56:09,116 - INFO - Created Project:ctest-TestBasicPolicy-66753212, ID : 879131d1-fce6-4eaa-a68b-d0eefc8ebe61
2025-08-30 21:56:10,441 - INFO - ================================================================================
2025-08-30 21:56:10,441 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-30 21:56:10,441 - 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-30 21:56:10,694 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.254': '0'}} with
2025-08-30 21:56:10,694 - INFO - Initial checks done. Running the testcase now
2025-08-30 21:56:10,694 - INFO -
2025-08-30 21:56:11,197 - DEBUG - Response for create_network : {'network': {'id': '10580ad5-e8de-40cb-841f-a7d546940bbb', 'name': 'ctest-vn-39119006', 'tenant_id': '879131d1fce64eaaa68bd0eefc8ebe61', 'project_id': '879131d1fce64eaaa68bd0eefc8ebe61', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66753212', 'ctest-vn-39119006'], 'port_security_enabled': True, 'description': ''}}
2025-08-30 21:56:11,413 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f132c640-f602-45e8-8f9f-0e153b306c55', 'name': '', 'tenant_id': '879131d1fce64eaaa68bd0eefc8ebe61', 'network_id': '10580ad5-e8de-40cb-841f-a7d546940bbb', 'ip_version': 4, 'cidr': '92.180.34.64/26', 'allocation_pools': [{'start': '92.180.34.66', 'end': '92.180.34.126'}], 'gateway_ip': '92.180.34.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '92.180.34.66', 'tags': [], 'project_id': '879131d1fce64eaaa68bd0eefc8ebe61'}}
2025-08-30 21:56:11,431 - INFO - Created VN ctest-vn-39119006
2025-08-30 21:56:11,481 - DEBUG - VN ctest-vn-39119006 UUID is 10580ad5-e8de-40cb-841f-a7d546940bbb
2025-08-30 21:56:11,782 - DEBUG - Response for create_network : {'network': {'id': 'b2d899d2-5e40-4869-b3a6-c0ee72667270', 'name': 'ctest-vn-29067029', 'tenant_id': '879131d1fce64eaaa68bd0eefc8ebe61', 'project_id': '879131d1fce64eaaa68bd0eefc8ebe61', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66753212', 'ctest-vn-29067029'], 'port_security_enabled': True, 'description': ''}}
2025-08-30 21:56:11,939 - DEBUG - Response for create_subnet : {'subnet': {'id': '409f7046-f44e-4d75-8f05-92312ebe3ae5', 'name': '', 'tenant_id': '879131d1fce64eaaa68bd0eefc8ebe61', 'network_id': 'b2d899d2-5e40-4869-b3a6-c0ee72667270', 'ip_version': 4, 'cidr': '95.166.0.128/26', 'allocation_pools': [{'start': '95.166.0.130', 'end': '95.166.0.190'}], 'gateway_ip': '95.166.0.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '95.166.0.130', 'tags': [], 'project_id': '879131d1fce64eaaa68bd0eefc8ebe61'}}
2025-08-30 21:56:11,955 - INFO - Created VN ctest-vn-29067029
2025-08-30 21:56:12,005 - DEBUG - VN ctest-vn-29067029 UUID is b2d899d2-5e40-4869-b3a6-c0ee72667270
2025-08-30 21:56:12,149 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-66753212:ctest-vn-39119006, 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-66753212:ctest-vn-29067029, 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-30 21:56:12,433 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '10580ad5-e8de-40cb-841f-a7d546940bbb', 'name': 'ctest-vn-39119006', 'tenant_id': '879131d1fce64eaaa68bd0eefc8ebe61', 'project_id': '879131d1fce64eaaa68bd0eefc8ebe61', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f132c640-f602-45e8-8f9f-0e153b306c55'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66753212', 'ctest-vn-39119006'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66753212', 'ctest-policy-allow-all-83893787']], 'subnet_ipam': [{'subnet_cidr': '92.180.34.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-30 21:56:12,648 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b2d899d2-5e40-4869-b3a6-c0ee72667270', 'name': 'ctest-vn-29067029', 'tenant_id': '879131d1fce64eaaa68bd0eefc8ebe61', 'project_id': '879131d1fce64eaaa68bd0eefc8ebe61', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['409f7046-f44e-4d75-8f05-92312ebe3ae5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66753212', 'ctest-vn-29067029'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66753212', 'ctest-policy-allow-all-83893787']], 'subnet_ipam': [{'subnet_cidr': '95.166.0.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-30 21:56:12,809 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-08-30 21:56:13,103 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-08-30 21:56:13,127 - DEBUG - Requesting: http://10.0.0.49:8082/domain/1d30c287-e4f2-475a-ac7e-cf81780d2d30
2025-08-30 21:56:13,137 - DEBUG - Requesting: http://10.0.0.49:8082/project/879131d1-fce6-4eaa-a68b-d0eefc8ebe61
2025-08-30 21:56:13,208 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/10580ad5-e8de-40cb-841f-a7d546940bbb
2025-08-30 21:56:13,218 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/10580ad5-e8de-40cb-841f-a7d546940bbb
2025-08-30 21:56:13,227 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/9c634438-acb9-4975-842b-4edca156981d
2025-08-30 21:56:13,234 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/9c634438-acb9-4975-842b-4edca156981d
2025-08-30 21:56:13,240 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/8613fcb8-b68f-4f39-81f4-6c9f7209670d
2025-08-30 21:56:13,246 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-30 21:56:13,246 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/10580ad5-e8de-40cb-841f-a7d546940bbb
2025-08-30 21:56:13,254 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/9c634438-acb9-4975-842b-4edca156981d
2025-08-30 21:56:13,266 - INFO - Verified VN network id 12 for VN 10580ad5-e8de-40cb-841f-a7d546940bbb
2025-08-30 21:56:13,266 - INFO - Verifications in API Server for VN ctest-vn-39119006 passed
2025-08-30 21:56:13,266 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/10580ad5-e8de-40cb-841f-a7d546940bbb
2025-08-30 21:56:13,273 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/9c634438-acb9-4975-842b-4edca156981d
2025-08-30 21:56:13,278 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/9c634438-acb9-4975-842b-4edca156981d
2025-08-30 21:56:13,283 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/8613fcb8-b68f-4f39-81f4-6c9f7209670d
2025-08-30 21:56:13,292 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66753212:ctest-vn-39119006', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66753212', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1177703216408576203', 'uuid-lslong': '9520512671738497979'}, 'enable': 'true', 'created': '2025-08-30T21:56:11', 'last-modified': '2025-08-30T21:56:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.883955'}
2025-08-30 21:56:13,298 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-30 21:56:13,298 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39119006 passed
2025-08-30 21:56:13,298 - DEBUG - ====Verifying policy data for ctest-vn-39119006 in API_Server ======
2025-08-30 21:56:13,298 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-08-30 21:56:13,302 - DEBUG - Requesting: http://10.0.0.49:8082/domain/1d30c287-e4f2-475a-ac7e-cf81780d2d30
2025-08-30 21:56:13,312 - DEBUG - Requesting: http://10.0.0.49:8082/project/879131d1-fce6-4eaa-a68b-d0eefc8ebe61
2025-08-30 21:56:13,378 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/10580ad5-e8de-40cb-841f-a7d546940bbb
2025-08-30 21:56:13,385 - DEBUG - ==>Verifying data for policy with id: 8c14ef62-17fe-4176-9609-bd9604027bb6, fqn: ['default-domain', 'ctest-TestBasicPolicy-66753212', 'ctest-policy-allow-all-83893787']
2025-08-30 21:56:13,385 - INFO - VN ctest-vn-39119006 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-30 21:56:13,385 - DEBUG - Verifying the vn in opserver
2025-08-30 21:56:13,385 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66753212:ctest-vn-39119006 virtual network link through opserver 10.0.0.49
2025-08-30 21:56:13,386 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-08-30 21:56:13,672 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-08-30 21:56:13,721 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66753212:ctest-vn-39119006', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66753212:ctest-vn-39119006?flat'}
2025-08-30 21:56:13,721 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66753212:ctest-vn-39119006 is found in opserver
2025-08-30 21:56:13,729 - DEBUG - Do not have enough data to verify VN in agent
2025-08-30 21:56:13,732 - DEBUG - VRF ids for VN ctest-vn-39119006: {}
2025-08-30 21:56:13,732 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-08-30 21:56:13,737 - DEBUG - Requesting: http://10.0.0.49:8082/domain/1d30c287-e4f2-475a-ac7e-cf81780d2d30
2025-08-30 21:56:13,746 - DEBUG - Requesting: http://10.0.0.49:8082/project/879131d1-fce6-4eaa-a68b-d0eefc8ebe61
2025-08-30 21:56:13,816 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/b2d899d2-5e40-4869-b3a6-c0ee72667270
2025-08-30 21:56:13,827 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/b2d899d2-5e40-4869-b3a6-c0ee72667270
2025-08-30 21:56:13,834 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/89f3e2d1-121e-41fe-8b9f-4ed9bb1c77af
2025-08-30 21:56:13,839 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/89f3e2d1-121e-41fe-8b9f-4ed9bb1c77af
2025-08-30 21:56:13,845 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/04ab3d91-51d3-4c78-b36d-94a92b87367f
2025-08-30 21:56:13,851 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-30 21:56:13,851 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/b2d899d2-5e40-4869-b3a6-c0ee72667270
2025-08-30 21:56:13,860 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/89f3e2d1-121e-41fe-8b9f-4ed9bb1c77af
2025-08-30 21:56:13,873 - INFO - Verified VN network id 13 for VN b2d899d2-5e40-4869-b3a6-c0ee72667270
2025-08-30 21:56:13,874 - INFO - Verifications in API Server for VN ctest-vn-29067029 passed
2025-08-30 21:56:13,874 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/b2d899d2-5e40-4869-b3a6-c0ee72667270
2025-08-30 21:56:13,885 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/89f3e2d1-121e-41fe-8b9f-4ed9bb1c77af
2025-08-30 21:56:13,891 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/89f3e2d1-121e-41fe-8b9f-4ed9bb1c77af
2025-08-30 21:56:13,898 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/04ab3d91-51d3-4c78-b36d-94a92b87367f
2025-08-30 21:56:13,909 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66753212:ctest-vn-29067029', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66753212', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12887219462524127337', 'uuid-lslong': '12945246309277135472'}, 'enable': 'true', 'created': '2025-08-30T21:56:11', 'last-modified': '2025-08-30T21:56:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.283571'}
2025-08-30 21:56:13,914 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-30 21:56:13,914 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-29067029 passed
2025-08-30 21:56:13,914 - DEBUG - ====Verifying policy data for ctest-vn-29067029 in API_Server ======
2025-08-30 21:56:13,914 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-08-30 21:56:13,920 - DEBUG - Requesting: http://10.0.0.49:8082/domain/1d30c287-e4f2-475a-ac7e-cf81780d2d30
2025-08-30 21:56:13,929 - DEBUG - Requesting: http://10.0.0.49:8082/project/879131d1-fce6-4eaa-a68b-d0eefc8ebe61
2025-08-30 21:56:14,001 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/b2d899d2-5e40-4869-b3a6-c0ee72667270
2025-08-30 21:56:14,011 - DEBUG - ==>Verifying data for policy with id: 8c14ef62-17fe-4176-9609-bd9604027bb6, fqn: ['default-domain', 'ctest-TestBasicPolicy-66753212', 'ctest-policy-allow-all-83893787']
2025-08-30 21:56:14,011 - INFO - VN ctest-vn-29067029 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-30 21:56:14,011 - DEBUG - Verifying the vn in opserver
2025-08-30 21:56:14,011 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66753212:ctest-vn-29067029 virtual network link through opserver 10.0.0.49
2025-08-30 21:56:14,011 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-08-30 21:56:14,022 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66753212:ctest-vn-29067029', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66753212:ctest-vn-29067029?flat'}
2025-08-30 21:56:14,022 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66753212:ctest-vn-29067029 is found in opserver
2025-08-30 21:56:14,030 - DEBUG - Do not have enough data to verify VN in agent
2025-08-30 21:56:14,034 - DEBUG - VRF ids for VN ctest-vn-29067029: {}
2025-08-30 21:56:14,082 - DEBUG - Services list from nova: [