2025-03-10 02:23:45,029 - INFO - Domain Default found not creating
2025-03-10 02:23:45,177 - INFO - Project ctest-TestBasicPolicy-61638679 not found, creating it
2025-03-10 02:23:45,608 - INFO - Created Project:ctest-TestBasicPolicy-61638679, ID : 4c93aeb0-b8cb-4ba9-95a2-fb1babce814d
2025-03-10 02:23:46,977 - INFO - ================================================================================
2025-03-10 02:23:46,977 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-10 02:23:46,977 - 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-03-10 02:23:47,236 - DEBUG - Nothing to compare xmpp stats {'10.0.0.60': {'10.20.0.14': '0'}} with
2025-03-10 02:23:47,236 - INFO - Initial checks done. Running the testcase now
2025-03-10 02:23:47,236 - INFO -
2025-03-10 02:23:47,771 - DEBUG - Response for create_network : {'network': {'id': 'f96c2166-93cd-4169-bc54-bd1113b20f06', 'name': 'ctest-vn-36245950', 'tenant_id': '4c93aeb0b8cb4ba995a2fb1babce814d', 'project_id': '4c93aeb0b8cb4ba995a2fb1babce814d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61638679', 'ctest-vn-36245950'], 'port_security_enabled': True, 'description': ''}}
2025-03-10 02:23:47,994 - DEBUG - Response for create_subnet : {'subnet': {'id': '540b87f4-5552-4595-ac4e-d2eafb0e933c', 'name': '', 'tenant_id': '4c93aeb0b8cb4ba995a2fb1babce814d', 'network_id': 'f96c2166-93cd-4169-bc54-bd1113b20f06', 'ip_version': 4, 'cidr': '220.102.127.0/26', 'allocation_pools': [{'start': '220.102.127.2', 'end': '220.102.127.62'}], 'gateway_ip': '220.102.127.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.102.127.2', 'tags': [], 'project_id': '4c93aeb0b8cb4ba995a2fb1babce814d'}}
2025-03-10 02:23:48,010 - INFO - Created VN ctest-vn-36245950
2025-03-10 02:23:48,063 - DEBUG - VN ctest-vn-36245950 UUID is f96c2166-93cd-4169-bc54-bd1113b20f06
2025-03-10 02:23:48,371 - DEBUG - Response for create_network : {'network': {'id': 'd9d7fa31-63e1-4912-9a1b-80766394dc09', 'name': 'ctest-vn-11679039', 'tenant_id': '4c93aeb0b8cb4ba995a2fb1babce814d', 'project_id': '4c93aeb0b8cb4ba995a2fb1babce814d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61638679', 'ctest-vn-11679039'], 'port_security_enabled': True, 'description': ''}}
2025-03-10 02:23:48,543 - DEBUG - Response for create_subnet : {'subnet': {'id': '6a066f14-b2d0-40ba-9631-061e5b4018db', 'name': '', 'tenant_id': '4c93aeb0b8cb4ba995a2fb1babce814d', 'network_id': 'd9d7fa31-63e1-4912-9a1b-80766394dc09', 'ip_version': 4, 'cidr': '221.174.115.192/26', 'allocation_pools': [{'start': '221.174.115.194', 'end': '221.174.115.254'}], 'gateway_ip': '221.174.115.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.174.115.194', 'tags': [], 'project_id': '4c93aeb0b8cb4ba995a2fb1babce814d'}}
2025-03-10 02:23:48,563 - INFO - Created VN ctest-vn-11679039
2025-03-10 02:23:48,610 - DEBUG - VN ctest-vn-11679039 UUID is d9d7fa31-63e1-4912-9a1b-80766394dc09
2025-03-10 02:23:48,754 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-61638679:ctest-vn-36245950, 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-61638679:ctest-vn-11679039, 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-03-10 02:23:49,033 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f96c2166-93cd-4169-bc54-bd1113b20f06', 'name': 'ctest-vn-36245950', 'tenant_id': '4c93aeb0b8cb4ba995a2fb1babce814d', 'project_id': '4c93aeb0b8cb4ba995a2fb1babce814d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['540b87f4-5552-4595-ac4e-d2eafb0e933c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61638679', 'ctest-vn-36245950'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61638679', 'ctest-policy-allow-all-93377289']], 'subnet_ipam': [{'subnet_cidr': '220.102.127.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-10 02:23:49,308 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd9d7fa31-63e1-4912-9a1b-80766394dc09', 'name': 'ctest-vn-11679039', 'tenant_id': '4c93aeb0b8cb4ba995a2fb1babce814d', 'project_id': '4c93aeb0b8cb4ba995a2fb1babce814d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6a066f14-b2d0-40ba-9631-061e5b4018db'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61638679', 'ctest-vn-11679039'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61638679', 'ctest-policy-allow-all-93377289']], 'subnet_ipam': [{'subnet_cidr': '221.174.115.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-10 02:23:49,427 - DEBUG - Requesting: http://10.0.0.60:8082/domains
2025-03-10 02:23:49,723 - DEBUG - Requesting: http://10.0.0.60:8082/domains
2025-03-10 02:23:49,749 - DEBUG - Requesting: http://10.0.0.60:8082/domain/7b12b1ca-5674-413d-9eed-230c5cde7567
2025-03-10 02:23:49,762 - DEBUG - Requesting: http://10.0.0.60:8082/project/4c93aeb0-b8cb-4ba9-95a2-fb1babce814d
2025-03-10 02:23:49,829 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/f96c2166-93cd-4169-bc54-bd1113b20f06
2025-03-10 02:23:49,839 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/f96c2166-93cd-4169-bc54-bd1113b20f06
2025-03-10 02:23:49,846 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/acd27a5b-b329-42fe-8ae3-92a4098841d8
2025-03-10 02:23:49,852 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/acd27a5b-b329-42fe-8ae3-92a4098841d8
2025-03-10 02:23:49,859 - DEBUG - Requesting: http://10.0.0.60:8082/route-target/9b418271-bc03-4e3f-aba6-e36936bb77f0
2025-03-10 02:23:49,865 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-10 02:23:49,865 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/f96c2166-93cd-4169-bc54-bd1113b20f06
2025-03-10 02:23:49,872 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/acd27a5b-b329-42fe-8ae3-92a4098841d8
2025-03-10 02:23:49,883 - INFO - Verified VN network id 9 for VN f96c2166-93cd-4169-bc54-bd1113b20f06
2025-03-10 02:23:49,883 - INFO - Verifications in API Server for VN ctest-vn-36245950 passed
2025-03-10 02:23:49,883 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/f96c2166-93cd-4169-bc54-bd1113b20f06
2025-03-10 02:23:49,892 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/acd27a5b-b329-42fe-8ae3-92a4098841d8
2025-03-10 02:23:49,898 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/acd27a5b-b329-42fe-8ae3-92a4098841d8
2025-03-10 02:23:49,905 - DEBUG - Requesting: http://10.0.0.60:8082/route-target/9b418271-bc03-4e3f-aba6-e36936bb77f0
2025-03-10 02:23:49,916 - DEBUG - Control-node 10.0.0.60 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61638679:ctest-vn-36245950', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61638679', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17972776937378890089', 'uuid-lslong': '13570679458216677126'}, 'enable': 'true', 'created': '2025-03-10T02:23:47', 'last-modified': '2025-03-10T02:23:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.903239'}
2025-03-10 02:23:49,924 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-10 02:23:49,924 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36245950 passed
2025-03-10 02:23:49,924 - DEBUG - ====Verifying policy data for ctest-vn-36245950 in API_Server ======
2025-03-10 02:23:49,924 - DEBUG - Requesting: http://10.0.0.60:8082/domains
2025-03-10 02:23:49,930 - DEBUG - Requesting: http://10.0.0.60:8082/domain/7b12b1ca-5674-413d-9eed-230c5cde7567
2025-03-10 02:23:49,941 - DEBUG - Requesting: http://10.0.0.60:8082/project/4c93aeb0-b8cb-4ba9-95a2-fb1babce814d
2025-03-10 02:23:50,008 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/f96c2166-93cd-4169-bc54-bd1113b20f06
2025-03-10 02:23:50,018 - DEBUG - ==>Verifying data for policy with id: fcc0b67b-099a-44ae-ac25-0a3efe2e5c7c, fqn: ['default-domain', 'ctest-TestBasicPolicy-61638679', 'ctest-policy-allow-all-93377289']
2025-03-10 02:23:50,018 - INFO - VN ctest-vn-36245950 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-10 02:23:50,018 - DEBUG - Verifying the vn in opserver
2025-03-10 02:23:50,018 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61638679:ctest-vn-36245950 virtual network link through opserver 10.0.0.60
2025-03-10 02:23:50,018 - DEBUG - Requesting: http://10.0.0.60:8081/analytics/uves/virtual-networks
2025-03-10 02:23:50,319 - DEBUG - Requesting: http://10.0.0.60:8081/analytics/uves/virtual-networks
2025-03-10 02:23:50,373 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61638679:ctest-vn-36245950', 'href': 'http://10.0.0.60:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61638679:ctest-vn-36245950?flat'}
2025-03-10 02:23:50,373 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61638679:ctest-vn-36245950 is found in opserver
2025-03-10 02:23:50,384 - DEBUG - Do not have enough data to verify VN in agent
2025-03-10 02:23:50,390 - DEBUG - VRF ids for VN ctest-vn-36245950: {}
2025-03-10 02:23:50,390 - DEBUG - Requesting: http://10.0.0.60:8082/domains
2025-03-10 02:23:50,398 - DEBUG - Requesting: http://10.0.0.60:8082/domain/7b12b1ca-5674-413d-9eed-230c5cde7567
2025-03-10 02:23:50,410 - DEBUG - Requesting: http://10.0.0.60:8082/project/4c93aeb0-b8cb-4ba9-95a2-fb1babce814d
2025-03-10 02:23:50,480 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/d9d7fa31-63e1-4912-9a1b-80766394dc09
2025-03-10 02:23:50,490 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/d9d7fa31-63e1-4912-9a1b-80766394dc09
2025-03-10 02:23:50,496 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/161441ea-de2b-493d-9c19-907bd33849f7
2025-03-10 02:23:50,503 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/161441ea-de2b-493d-9c19-907bd33849f7
2025-03-10 02:23:50,508 - DEBUG - Requesting: http://10.0.0.60:8082/route-target/229d4664-dacf-418e-aaef-e58d943b609b
2025-03-10 02:23:50,514 - DEBUG - Route Targets: ['target:64512:8000006']
2025-03-10 02:23:50,514 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/d9d7fa31-63e1-4912-9a1b-80766394dc09
2025-03-10 02:23:50,521 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/161441ea-de2b-493d-9c19-907bd33849f7
2025-03-10 02:23:50,531 - INFO - Verified VN network id 10 for VN d9d7fa31-63e1-4912-9a1b-80766394dc09
2025-03-10 02:23:50,531 - INFO - Verifications in API Server for VN ctest-vn-11679039 passed
2025-03-10 02:23:50,531 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/d9d7fa31-63e1-4912-9a1b-80766394dc09
2025-03-10 02:23:50,539 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/161441ea-de2b-493d-9c19-907bd33849f7
2025-03-10 02:23:50,544 - DEBUG - Requesting: http://10.0.0.60:8082/routing-instance/161441ea-de2b-493d-9c19-907bd33849f7
2025-03-10 02:23:50,550 - DEBUG - Requesting: http://10.0.0.60:8082/route-target/229d4664-dacf-418e-aaef-e58d943b609b
2025-03-10 02:23:50,561 - DEBUG - Control-node 10.0.0.60 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61638679:ctest-vn-11679039', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61638679', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15697290116259203346', 'uuid-lslong': '11104610552177286153'}, 'enable': 'true', 'created': '2025-03-10T02:23:48', 'last-modified': '2025-03-10T02:23:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.314752'}
2025-03-10 02:23:50,567 - DEBUG - Route Targets: ['target:64512:8000006']
2025-03-10 02:23:50,567 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11679039 passed
2025-03-10 02:23:50,567 - DEBUG - ====Verifying policy data for ctest-vn-11679039 in API_Server ======
2025-03-10 02:23:50,567 - DEBUG - Requesting: http://10.0.0.60:8082/domains
2025-03-10 02:23:50,572 - DEBUG - Requesting: http://10.0.0.60:8082/domain/7b12b1ca-5674-413d-9eed-230c5cde7567
2025-03-10 02:23:50,582 - DEBUG - Requesting: http://10.0.0.60:8082/project/4c93aeb0-b8cb-4ba9-95a2-fb1babce814d
2025-03-10 02:23:50,648 - DEBUG - Requesting: http://10.0.0.60:8082/virtual-network/d9d7fa31-63e1-4912-9a1b-80766394dc09
2025-03-10 02:23:50,655 - DEBUG - ==>Verifying data for policy with id: fcc0b67b-099a-44ae-ac25-0a3efe2e5c7c, fqn: ['default-domain', 'ctest-TestBasicPolicy-61638679', 'ctest-policy-allow-all-93377289']
2025-03-10 02:23:50,655 - INFO - VN ctest-vn-11679039 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-10 02:23:50,655 - DEBUG - Verifying the vn in opserver
2025-03-10 02:23:50,655 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61638679:ctest-vn-11679039 virtual network link through opserver 10.0.0.60
2025-03-10 02:23:50,655 - DEBUG - Requesting: http://10.0.0.60:8081/analytics/uves/virtual-networks
2025-03-10 02:23:50,665 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61638679:ctest-vn-11679039', 'href': 'http://10.0.0.60:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61638679:ctest-vn-11679039?flat'}
2025-03-10 02:23:50,665 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61638679:ctest-vn-11679039 is found in opserver
2025-03-10 02:23:50,676 - DEBUG - Do not have enough data to verify VN in agent
2025-03-10 02:23:50,681 - DEBUG - VRF ids for VN ctest-vn-11679039: {}
2025-03-10 02:23:50,740 - DEBUG - Services list from nova: [