2025-01-07 11:40:09,491 - INFO - Domain Default found not creating
2025-01-07 11:40:09,648 - INFO - Project ctest-TestBasicPolicy-20419292 not found, creating it
2025-01-07 11:40:10,124 - INFO - Created Project:ctest-TestBasicPolicy-20419292, ID : 44827754-c479-49c1-89bc-8a8c40647cde
2025-01-07 11:40:12,108 - INFO - ================================================================================
2025-01-07 11:40:12,108 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-07 11:40:12,108 - 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-01-07 11:40:12,377 - DEBUG - Nothing to compare xmpp stats {'10.0.0.37': {'10.20.0.5': '0'}} with
2025-01-07 11:40:12,377 - INFO - Initial checks done. Running the testcase now
2025-01-07 11:40:12,377 - INFO -
2025-01-07 11:40:12,966 - DEBUG - Response for create_network : {'network': {'id': '7b3a9cf1-d97b-4536-803b-81addfe9534c', 'name': 'ctest-vn-64197104', 'tenant_id': '44827754c47949c189bc8a8c40647cde', 'project_id': '44827754c47949c189bc8a8c40647cde', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20419292', 'ctest-vn-64197104'], 'port_security_enabled': True, 'description': ''}}
2025-01-07 11:40:13,194 - DEBUG - Response for create_subnet : {'subnet': {'id': '1521d834-bffb-41d3-8fb4-2c1970d1b2ef', 'name': '', 'tenant_id': '44827754c47949c189bc8a8c40647cde', 'network_id': '7b3a9cf1-d97b-4536-803b-81addfe9534c', 'ip_version': 4, 'cidr': '111.31.147.64/26', 'allocation_pools': [{'start': '111.31.147.66', 'end': '111.31.147.126'}], 'gateway_ip': '111.31.147.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.31.147.66', 'tags': [], 'project_id': '44827754c47949c189bc8a8c40647cde'}}
2025-01-07 11:40:13,215 - INFO - Created VN ctest-vn-64197104
2025-01-07 11:40:13,270 - DEBUG - VN ctest-vn-64197104 UUID is 7b3a9cf1-d97b-4536-803b-81addfe9534c
2025-01-07 11:40:13,605 - DEBUG - Response for create_network : {'network': {'id': '2446e936-56d9-4fb6-93a8-7de4a455f776', 'name': 'ctest-vn-70327650', 'tenant_id': '44827754c47949c189bc8a8c40647cde', 'project_id': '44827754c47949c189bc8a8c40647cde', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20419292', 'ctest-vn-70327650'], 'port_security_enabled': True, 'description': ''}}
2025-01-07 11:40:13,811 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e4eaad02-39ad-41fa-94dc-7fec98270373', 'name': '', 'tenant_id': '44827754c47949c189bc8a8c40647cde', 'network_id': '2446e936-56d9-4fb6-93a8-7de4a455f776', 'ip_version': 4, 'cidr': '80.165.23.128/26', 'allocation_pools': [{'start': '80.165.23.130', 'end': '80.165.23.190'}], 'gateway_ip': '80.165.23.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '80.165.23.130', 'tags': [], 'project_id': '44827754c47949c189bc8a8c40647cde'}}
2025-01-07 11:40:13,831 - INFO - Created VN ctest-vn-70327650
2025-01-07 11:40:13,886 - DEBUG - VN ctest-vn-70327650 UUID is 2446e936-56d9-4fb6-93a8-7de4a455f776
2025-01-07 11:40:14,008 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-20419292:ctest-vn-64197104, 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-20419292:ctest-vn-70327650, 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-01-07 11:40:14,323 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7b3a9cf1-d97b-4536-803b-81addfe9534c', 'name': 'ctest-vn-64197104', 'tenant_id': '44827754c47949c189bc8a8c40647cde', 'project_id': '44827754c47949c189bc8a8c40647cde', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1521d834-bffb-41d3-8fb4-2c1970d1b2ef'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20419292', 'ctest-vn-64197104'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20419292', 'ctest-policy-allow-all-05688946']], 'subnet_ipam': [{'subnet_cidr': '111.31.147.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-07 11:40:14,554 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2446e936-56d9-4fb6-93a8-7de4a455f776', 'name': 'ctest-vn-70327650', 'tenant_id': '44827754c47949c189bc8a8c40647cde', 'project_id': '44827754c47949c189bc8a8c40647cde', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e4eaad02-39ad-41fa-94dc-7fec98270373'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20419292', 'ctest-vn-70327650'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20419292', 'ctest-policy-allow-all-05688946']], 'subnet_ipam': [{'subnet_cidr': '80.165.23.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-07 11:40:14,756 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2025-01-07 11:40:15,057 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2025-01-07 11:40:15,089 - DEBUG - Requesting: http://10.0.0.37:8082/domain/9ecc609c-aa3f-4023-8357-292ed742202d
2025-01-07 11:40:15,104 - DEBUG - Requesting: http://10.0.0.37:8082/project/44827754-c479-49c1-89bc-8a8c40647cde
2025-01-07 11:40:15,195 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/7b3a9cf1-d97b-4536-803b-81addfe9534c
2025-01-07 11:40:15,208 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/7b3a9cf1-d97b-4536-803b-81addfe9534c
2025-01-07 11:40:15,218 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/4e8bd2e6-17e6-4c58-87d6-733e5bc3aa88
2025-01-07 11:40:15,227 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/4e8bd2e6-17e6-4c58-87d6-733e5bc3aa88
2025-01-07 11:40:15,235 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/d94f23e4-98e8-4af4-a309-111b80d6149e
2025-01-07 11:40:15,242 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-07 11:40:15,242 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/7b3a9cf1-d97b-4536-803b-81addfe9534c
2025-01-07 11:40:15,252 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/4e8bd2e6-17e6-4c58-87d6-733e5bc3aa88
2025-01-07 11:40:15,267 - INFO - Verified VN network id 8 for VN 7b3a9cf1-d97b-4536-803b-81addfe9534c
2025-01-07 11:40:15,267 - INFO - Verifications in API Server for VN ctest-vn-64197104 passed
2025-01-07 11:40:15,267 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/7b3a9cf1-d97b-4536-803b-81addfe9534c
2025-01-07 11:40:15,277 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/4e8bd2e6-17e6-4c58-87d6-733e5bc3aa88
2025-01-07 11:40:15,285 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/4e8bd2e6-17e6-4c58-87d6-733e5bc3aa88
2025-01-07 11:40:15,292 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/d94f23e4-98e8-4af4-a309-111b80d6149e
2025-01-07 11:40:15,306 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20419292:ctest-vn-64197104', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20419292', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8879582177864140086', 'uuid-lslong': '9240121644266640204'}, 'enable': 'true', 'created': '2025-01-07T11:40:12', 'last-modified': '2025-01-07T11:40:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.016884'}
2025-01-07 11:40:15,315 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-07 11:40:15,315 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64197104 passed
2025-01-07 11:40:15,315 - DEBUG - ====Verifying policy data for ctest-vn-64197104 in API_Server ======
2025-01-07 11:40:15,315 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2025-01-07 11:40:15,323 - DEBUG - Requesting: http://10.0.0.37:8082/domain/9ecc609c-aa3f-4023-8357-292ed742202d
2025-01-07 11:40:15,335 - DEBUG - Requesting: http://10.0.0.37:8082/project/44827754-c479-49c1-89bc-8a8c40647cde
2025-01-07 11:40:15,411 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/7b3a9cf1-d97b-4536-803b-81addfe9534c
2025-01-07 11:40:15,423 - DEBUG - ==>Verifying data for policy with id: bf351067-014c-423a-90f1-c3033013cec1, fqn: ['default-domain', 'ctest-TestBasicPolicy-20419292', 'ctest-policy-allow-all-05688946']
2025-01-07 11:40:15,423 - INFO - VN ctest-vn-64197104 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-07 11:40:15,423 - DEBUG - Verifying the vn in opserver
2025-01-07 11:40:15,423 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20419292:ctest-vn-64197104 virtual network link through opserver 10.0.0.37
2025-01-07 11:40:15,424 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2025-01-07 11:40:15,722 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2025-01-07 11:40:15,778 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20419292:ctest-vn-64197104', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20419292:ctest-vn-64197104?flat'}
2025-01-07 11:40:15,778 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20419292:ctest-vn-64197104 is found in opserver
2025-01-07 11:40:15,791 - DEBUG - Do not have enough data to verify VN in agent
2025-01-07 11:40:15,796 - DEBUG - VRF ids for VN ctest-vn-64197104: {}
2025-01-07 11:40:15,796 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2025-01-07 11:40:15,803 - DEBUG - Requesting: http://10.0.0.37:8082/domain/9ecc609c-aa3f-4023-8357-292ed742202d
2025-01-07 11:40:15,817 - DEBUG - Requesting: http://10.0.0.37:8082/project/44827754-c479-49c1-89bc-8a8c40647cde
2025-01-07 11:40:15,892 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/2446e936-56d9-4fb6-93a8-7de4a455f776
2025-01-07 11:40:15,905 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/2446e936-56d9-4fb6-93a8-7de4a455f776
2025-01-07 11:40:15,914 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/e6bfa989-e427-4dcd-883f-69ad35820e24
2025-01-07 11:40:15,922 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/e6bfa989-e427-4dcd-883f-69ad35820e24
2025-01-07 11:40:15,930 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/6ba80344-b559-4820-bb7e-e8c3c158f138
2025-01-07 11:40:15,937 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-07 11:40:15,937 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/2446e936-56d9-4fb6-93a8-7de4a455f776
2025-01-07 11:40:15,947 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/e6bfa989-e427-4dcd-883f-69ad35820e24
2025-01-07 11:40:15,962 - INFO - Verified VN network id 9 for VN 2446e936-56d9-4fb6-93a8-7de4a455f776
2025-01-07 11:40:15,962 - INFO - Verifications in API Server for VN ctest-vn-70327650 passed
2025-01-07 11:40:15,963 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/2446e936-56d9-4fb6-93a8-7de4a455f776
2025-01-07 11:40:15,975 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/e6bfa989-e427-4dcd-883f-69ad35820e24
2025-01-07 11:40:15,983 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/e6bfa989-e427-4dcd-883f-69ad35820e24
2025-01-07 11:40:15,991 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/6ba80344-b559-4820-bb7e-e8c3c158f138
2025-01-07 11:40:16,005 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20419292:ctest-vn-70327650', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20419292', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2614033053329739702', 'uuid-lslong': '10639892540625909622'}, 'enable': 'true', 'created': '2025-01-07T11:40:13', 'last-modified': '2025-01-07T11:40:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.472191'}
2025-01-07 11:40:16,011 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-07 11:40:16,011 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70327650 passed
2025-01-07 11:40:16,011 - DEBUG - ====Verifying policy data for ctest-vn-70327650 in API_Server ======
2025-01-07 11:40:16,011 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2025-01-07 11:40:16,017 - DEBUG - Requesting: http://10.0.0.37:8082/domain/9ecc609c-aa3f-4023-8357-292ed742202d
2025-01-07 11:40:16,033 - DEBUG - Requesting: http://10.0.0.37:8082/project/44827754-c479-49c1-89bc-8a8c40647cde
2025-01-07 11:40:16,107 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/2446e936-56d9-4fb6-93a8-7de4a455f776
2025-01-07 11:40:16,118 - DEBUG - ==>Verifying data for policy with id: bf351067-014c-423a-90f1-c3033013cec1, fqn: ['default-domain', 'ctest-TestBasicPolicy-20419292', 'ctest-policy-allow-all-05688946']
2025-01-07 11:40:16,118 - INFO - VN ctest-vn-70327650 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-07 11:40:16,118 - DEBUG - Verifying the vn in opserver
2025-01-07 11:40:16,118 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20419292:ctest-vn-70327650 virtual network link through opserver 10.0.0.37
2025-01-07 11:40:16,118 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2025-01-07 11:40:16,130 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20419292:ctest-vn-70327650', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20419292:ctest-vn-70327650?flat'}
2025-01-07 11:40:16,130 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20419292:ctest-vn-70327650 is found in opserver
2025-01-07 11:40:16,142 - DEBUG - Do not have enough data to verify VN in agent
2025-01-07 11:40:16,148 - DEBUG - VRF ids for VN ctest-vn-70327650: {}
2025-01-07 11:40:16,211 - DEBUG - Services list from nova: [