2024-10-28 02:32:08,814 - INFO - Domain Default found not creating
2024-10-28 02:32:08,993 - INFO - Project ctest-TestBasicPolicy-31296267 not found, creating it
2024-10-28 02:32:09,522 - INFO - Created Project:ctest-TestBasicPolicy-31296267, ID : 4963a66a-5436-471a-af75-22063332bbcb
2024-10-28 02:32:11,221 - INFO - ================================================================================
2024-10-28 02:32:11,221 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-28 02:32:11,221 - 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
2024-10-28 02:32:11,484 - DEBUG - Nothing to compare xmpp stats {'10.0.0.32': {'10.0.0.32': '0'}} with
2024-10-28 02:32:11,484 - INFO - Initial checks done. Running the testcase now
2024-10-28 02:32:11,485 - INFO -
2024-10-28 02:32:12,145 - DEBUG - Response for create_network : {'network': {'id': '45d2fdb7-cfa2-4603-9c79-543eb7c05f9c', 'name': 'ctest-vn-48998564', 'tenant_id': '4963a66a5436471aaf7522063332bbcb', 'project_id': '4963a66a5436471aaf7522063332bbcb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31296267', 'ctest-vn-48998564'], 'port_security_enabled': True, 'description': ''}}
2024-10-28 02:32:12,395 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cad422a4-8b53-4d5a-acc4-7673e102680a', 'name': '', 'tenant_id': '4963a66a5436471aaf7522063332bbcb', 'network_id': '45d2fdb7-cfa2-4603-9c79-543eb7c05f9c', 'ip_version': 4, 'cidr': '94.137.65.192/26', 'allocation_pools': [{'start': '94.137.65.194', 'end': '94.137.65.254'}], 'gateway_ip': '94.137.65.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '94.137.65.194', 'tags': [], 'project_id': '4963a66a5436471aaf7522063332bbcb'}}
2024-10-28 02:32:12,419 - INFO - Created VN ctest-vn-48998564
2024-10-28 02:32:12,479 - DEBUG - VN ctest-vn-48998564 UUID is 45d2fdb7-cfa2-4603-9c79-543eb7c05f9c
2024-10-28 02:32:12,825 - DEBUG - Response for create_network : {'network': {'id': '237303e1-8a91-40c4-9230-187b14967126', 'name': 'ctest-vn-25185465', 'tenant_id': '4963a66a5436471aaf7522063332bbcb', 'project_id': '4963a66a5436471aaf7522063332bbcb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31296267', 'ctest-vn-25185465'], 'port_security_enabled': True, 'description': ''}}
2024-10-28 02:32:13,066 - DEBUG - Response for create_subnet : {'subnet': {'id': 'def50e4c-f42c-4140-a52a-8e200720ba51', 'name': '', 'tenant_id': '4963a66a5436471aaf7522063332bbcb', 'network_id': '237303e1-8a91-40c4-9230-187b14967126', 'ip_version': 4, 'cidr': '220.84.37.128/26', 'allocation_pools': [{'start': '220.84.37.130', 'end': '220.84.37.190'}], 'gateway_ip': '220.84.37.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.84.37.130', 'tags': [], 'project_id': '4963a66a5436471aaf7522063332bbcb'}}
2024-10-28 02:32:13,088 - INFO - Created VN ctest-vn-25185465
2024-10-28 02:32:13,147 - DEBUG - VN ctest-vn-25185465 UUID is 237303e1-8a91-40c4-9230-187b14967126
2024-10-28 02:32:13,282 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-31296267:ctest-vn-48998564, 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-31296267:ctest-vn-25185465, 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]
2024-10-28 02:32:13,622 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '45d2fdb7-cfa2-4603-9c79-543eb7c05f9c', 'name': 'ctest-vn-48998564', 'tenant_id': '4963a66a5436471aaf7522063332bbcb', 'project_id': '4963a66a5436471aaf7522063332bbcb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cad422a4-8b53-4d5a-acc4-7673e102680a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31296267', 'ctest-vn-48998564'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31296267', 'ctest-policy-allow-all-47353425']], 'subnet_ipam': [{'subnet_cidr': '94.137.65.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-28 02:32:13,888 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '237303e1-8a91-40c4-9230-187b14967126', 'name': 'ctest-vn-25185465', 'tenant_id': '4963a66a5436471aaf7522063332bbcb', 'project_id': '4963a66a5436471aaf7522063332bbcb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['def50e4c-f42c-4140-a52a-8e200720ba51'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31296267', 'ctest-vn-25185465'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31296267', 'ctest-policy-allow-all-47353425']], 'subnet_ipam': [{'subnet_cidr': '220.84.37.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-28 02:32:14,055 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-10-28 02:32:14,404 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-10-28 02:32:14,442 - DEBUG - Requesting: http://10.0.0.32:8082/domain/51ad6298-d170-4109-b48a-f07afad31756
2024-10-28 02:32:14,461 - DEBUG - Requesting: http://10.0.0.32:8082/project/4963a66a-5436-471a-af75-22063332bbcb
2024-10-28 02:32:14,552 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/45d2fdb7-cfa2-4603-9c79-543eb7c05f9c
2024-10-28 02:32:14,573 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/45d2fdb7-cfa2-4603-9c79-543eb7c05f9c
2024-10-28 02:32:14,594 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/6cdcaa9b-b9c3-4e58-a028-85184823ecac
2024-10-28 02:32:14,607 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/6cdcaa9b-b9c3-4e58-a028-85184823ecac
2024-10-28 02:32:14,619 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/30a1d55f-7383-4e73-aeef-910934ae9d7b
2024-10-28 02:32:14,629 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-28 02:32:14,629 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/45d2fdb7-cfa2-4603-9c79-543eb7c05f9c
2024-10-28 02:32:14,646 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/6cdcaa9b-b9c3-4e58-a028-85184823ecac
2024-10-28 02:32:14,668 - INFO - Verified VN network id 9 for VN 45d2fdb7-cfa2-4603-9c79-543eb7c05f9c
2024-10-28 02:32:14,669 - INFO - Verifications in API Server for VN ctest-vn-48998564 passed
2024-10-28 02:32:14,669 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/45d2fdb7-cfa2-4603-9c79-543eb7c05f9c
2024-10-28 02:32:14,688 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/6cdcaa9b-b9c3-4e58-a028-85184823ecac
2024-10-28 02:32:14,701 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/6cdcaa9b-b9c3-4e58-a028-85184823ecac
2024-10-28 02:32:14,715 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/30a1d55f-7383-4e73-aeef-910934ae9d7b
2024-10-28 02:32:14,734 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31296267:ctest-vn-48998564', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31296267', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5031362699630626307', 'uuid-lslong': '11275135770446290844'}, 'enable': 'true', 'created': '2024-10-28T02:32:12', 'last-modified': '2024-10-28T02:32:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.138844'}
2024-10-28 02:32:14,742 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-28 02:32:14,742 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48998564 passed
2024-10-28 02:32:14,743 - DEBUG - ====Verifying policy data for ctest-vn-48998564 in API_Server ======
2024-10-28 02:32:14,743 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-10-28 02:32:14,750 - DEBUG - Requesting: http://10.0.0.32:8082/domain/51ad6298-d170-4109-b48a-f07afad31756
2024-10-28 02:32:14,765 - DEBUG - Requesting: http://10.0.0.32:8082/project/4963a66a-5436-471a-af75-22063332bbcb
2024-10-28 02:32:14,856 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/45d2fdb7-cfa2-4603-9c79-543eb7c05f9c
2024-10-28 02:32:14,873 - DEBUG - ==>Verifying data for policy with id: eb97c356-83c3-4a2c-b6e4-f73cd1581cb9, fqn: ['default-domain', 'ctest-TestBasicPolicy-31296267', 'ctest-policy-allow-all-47353425']
2024-10-28 02:32:14,873 - INFO - VN ctest-vn-48998564 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-28 02:32:14,873 - DEBUG - Verifying the vn in opserver
2024-10-28 02:32:14,873 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31296267:ctest-vn-48998564 virtual network link through opserver 10.0.0.32
2024-10-28 02:32:14,873 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-10-28 02:32:15,213 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-10-28 02:32:15,281 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31296267:ctest-vn-48998564', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31296267:ctest-vn-48998564?flat'}
2024-10-28 02:32:15,281 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31296267:ctest-vn-48998564 is found in opserver
2024-10-28 02:32:15,295 - DEBUG - Do not have enough data to verify VN in agent
2024-10-28 02:32:15,301 - DEBUG - VRF ids for VN ctest-vn-48998564: {}
2024-10-28 02:32:15,301 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-10-28 02:32:15,308 - DEBUG - Requesting: http://10.0.0.32:8082/domain/51ad6298-d170-4109-b48a-f07afad31756
2024-10-28 02:32:15,327 - DEBUG - Requesting: http://10.0.0.32:8082/project/4963a66a-5436-471a-af75-22063332bbcb
2024-10-28 02:32:15,423 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/237303e1-8a91-40c4-9230-187b14967126
2024-10-28 02:32:15,442 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/237303e1-8a91-40c4-9230-187b14967126
2024-10-28 02:32:15,457 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/99dee541-7699-405b-bfb8-7941b93b60a4
2024-10-28 02:32:15,467 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/99dee541-7699-405b-bfb8-7941b93b60a4
2024-10-28 02:32:15,476 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/48207083-5445-4e2c-b061-c0795925eeb1
2024-10-28 02:32:15,486 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-28 02:32:15,486 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/237303e1-8a91-40c4-9230-187b14967126
2024-10-28 02:32:15,502 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/99dee541-7699-405b-bfb8-7941b93b60a4
2024-10-28 02:32:15,523 - INFO - Verified VN network id 10 for VN 237303e1-8a91-40c4-9230-187b14967126
2024-10-28 02:32:15,523 - INFO - Verifications in API Server for VN ctest-vn-25185465 passed
2024-10-28 02:32:15,523 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/237303e1-8a91-40c4-9230-187b14967126
2024-10-28 02:32:15,541 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/99dee541-7699-405b-bfb8-7941b93b60a4
2024-10-28 02:32:15,551 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/99dee541-7699-405b-bfb8-7941b93b60a4
2024-10-28 02:32:15,561 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/48207083-5445-4e2c-b061-c0795925eeb1
2024-10-28 02:32:15,576 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31296267:ctest-vn-25185465', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31296267', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2554389680876503236', 'uuid-lslong': '10533946445325037862'}, 'enable': 'true', 'created': '2024-10-28T02:32:12', 'last-modified': '2024-10-28T02:32:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.716805'}
2024-10-28 02:32:15,584 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-28 02:32:15,584 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25185465 passed
2024-10-28 02:32:15,585 - DEBUG - ====Verifying policy data for ctest-vn-25185465 in API_Server ======
2024-10-28 02:32:15,585 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-10-28 02:32:15,592 - DEBUG - Requesting: http://10.0.0.32:8082/domain/51ad6298-d170-4109-b48a-f07afad31756
2024-10-28 02:32:15,608 - DEBUG - Requesting: http://10.0.0.32:8082/project/4963a66a-5436-471a-af75-22063332bbcb
2024-10-28 02:32:15,697 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/237303e1-8a91-40c4-9230-187b14967126
2024-10-28 02:32:15,714 - DEBUG - ==>Verifying data for policy with id: eb97c356-83c3-4a2c-b6e4-f73cd1581cb9, fqn: ['default-domain', 'ctest-TestBasicPolicy-31296267', 'ctest-policy-allow-all-47353425']
2024-10-28 02:32:15,714 - INFO - VN ctest-vn-25185465 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-28 02:32:15,714 - DEBUG - Verifying the vn in opserver
2024-10-28 02:32:15,714 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31296267:ctest-vn-25185465 virtual network link through opserver 10.0.0.32
2024-10-28 02:32:15,714 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-10-28 02:32:15,728 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31296267:ctest-vn-25185465', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31296267:ctest-vn-25185465?flat'}
2024-10-28 02:32:15,728 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31296267:ctest-vn-25185465 is found in opserver
2024-10-28 02:32:15,741 - DEBUG - Do not have enough data to verify VN in agent
2024-10-28 02:32:15,747 - DEBUG - VRF ids for VN ctest-vn-25185465: {}
2024-10-28 02:32:15,809 - DEBUG - Services list from nova: [