2025-04-09 11:37:25,529 - INFO - Domain Default found not creating
2025-04-09 11:37:25,702 - INFO - Project ctest-TestBasicPolicy-81657573 not found, creating it
2025-04-09 11:37:26,244 - INFO - Created Project:ctest-TestBasicPolicy-81657573, ID : 4ce69977-83a8-42a9-8442-bdcafc55bce2
2025-04-09 11:37:27,837 - INFO - ================================================================================
2025-04-09 11:37:27,837 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-09 11:37:27,837 - 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-04-09 11:37:28,092 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-04-09 11:37:28,092 - INFO - Initial checks done. Running the testcase now
2025-04-09 11:37:28,092 - INFO -
2025-04-09 11:37:28,686 - DEBUG - Response for create_network : {'network': {'id': '2f171251-17df-4627-9b04-386663f845ac', 'name': 'ctest-vn-08832836', 'tenant_id': '4ce6997783a842a98442bdcafc55bce2', 'project_id': '4ce6997783a842a98442bdcafc55bce2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81657573', 'ctest-vn-08832836'], 'port_security_enabled': True, 'description': ''}}
2025-04-09 11:37:28,868 - DEBUG - Response for create_subnet : {'subnet': {'id': '8beacb33-c8d0-4034-b234-8c63a8b48a91', 'name': '', 'tenant_id': '4ce6997783a842a98442bdcafc55bce2', 'network_id': '2f171251-17df-4627-9b04-386663f845ac', 'ip_version': 4, 'cidr': '207.65.216.64/26', 'allocation_pools': [{'start': '207.65.216.66', 'end': '207.65.216.126'}], 'gateway_ip': '207.65.216.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '207.65.216.66', 'tags': [], 'project_id': '4ce6997783a842a98442bdcafc55bce2'}}
2025-04-09 11:37:28,893 - INFO - Created VN ctest-vn-08832836
2025-04-09 11:37:28,953 - DEBUG - VN ctest-vn-08832836 UUID is 2f171251-17df-4627-9b04-386663f845ac
2025-04-09 11:37:29,298 - DEBUG - Response for create_network : {'network': {'id': '1b0d2527-ce38-4076-b887-7beb5615ab4f', 'name': 'ctest-vn-95080394', 'tenant_id': '4ce6997783a842a98442bdcafc55bce2', 'project_id': '4ce6997783a842a98442bdcafc55bce2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81657573', 'ctest-vn-95080394'], 'port_security_enabled': True, 'description': ''}}
2025-04-09 11:37:29,516 - DEBUG - Response for create_subnet : {'subnet': {'id': '93245467-267d-4577-a72d-db297519601d', 'name': '', 'tenant_id': '4ce6997783a842a98442bdcafc55bce2', 'network_id': '1b0d2527-ce38-4076-b887-7beb5615ab4f', 'ip_version': 4, 'cidr': '19.236.42.192/26', 'allocation_pools': [{'start': '19.236.42.194', 'end': '19.236.42.254'}], 'gateway_ip': '19.236.42.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '19.236.42.194', 'tags': [], 'project_id': '4ce6997783a842a98442bdcafc55bce2'}}
2025-04-09 11:37:29,535 - INFO - Created VN ctest-vn-95080394
2025-04-09 11:37:29,589 - DEBUG - VN ctest-vn-95080394 UUID is 1b0d2527-ce38-4076-b887-7beb5615ab4f
2025-04-09 11:37:29,721 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-81657573:ctest-vn-08832836, 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-81657573:ctest-vn-95080394, 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-04-09 11:37:30,081 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2f171251-17df-4627-9b04-386663f845ac', 'name': 'ctest-vn-08832836', 'tenant_id': '4ce6997783a842a98442bdcafc55bce2', 'project_id': '4ce6997783a842a98442bdcafc55bce2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8beacb33-c8d0-4034-b234-8c63a8b48a91'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81657573', 'ctest-vn-08832836'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-81657573', 'ctest-policy-allow-all-90210249']], 'subnet_ipam': [{'subnet_cidr': '207.65.216.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-09 11:37:30,365 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1b0d2527-ce38-4076-b887-7beb5615ab4f', 'name': 'ctest-vn-95080394', 'tenant_id': '4ce6997783a842a98442bdcafc55bce2', 'project_id': '4ce6997783a842a98442bdcafc55bce2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['93245467-267d-4577-a72d-db297519601d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81657573', 'ctest-vn-95080394'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-81657573', 'ctest-policy-allow-all-90210249']], 'subnet_ipam': [{'subnet_cidr': '19.236.42.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-09 11:37:30,549 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-09 11:37:30,865 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-09 11:37:30,899 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a0e2c731-5fae-4fc9-867a-34a900af99d2
2025-04-09 11:37:30,916 - DEBUG - Requesting: http://10.0.0.38:8082/project/4ce69977-83a8-42a9-8442-bdcafc55bce2
2025-04-09 11:37:30,998 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2f171251-17df-4627-9b04-386663f845ac
2025-04-09 11:37:31,014 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2f171251-17df-4627-9b04-386663f845ac
2025-04-09 11:37:31,029 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d314f93a-2daf-4aea-bccf-4b8f4a100159
2025-04-09 11:37:31,039 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d314f93a-2daf-4aea-bccf-4b8f4a100159
2025-04-09 11:37:31,049 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/57e451a7-ea68-4d9e-865f-0cb4ff2d1332
2025-04-09 11:37:31,060 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-09 11:37:31,060 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2f171251-17df-4627-9b04-386663f845ac
2025-04-09 11:37:31,075 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d314f93a-2daf-4aea-bccf-4b8f4a100159
2025-04-09 11:37:31,095 - INFO - Verified VN network id 9 for VN 2f171251-17df-4627-9b04-386663f845ac
2025-04-09 11:37:31,095 - INFO - Verifications in API Server for VN ctest-vn-08832836 passed
2025-04-09 11:37:31,095 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2f171251-17df-4627-9b04-386663f845ac
2025-04-09 11:37:31,108 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d314f93a-2daf-4aea-bccf-4b8f4a100159
2025-04-09 11:37:31,118 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d314f93a-2daf-4aea-bccf-4b8f4a100159
2025-04-09 11:37:31,126 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/57e451a7-ea68-4d9e-865f-0cb4ff2d1332
2025-04-09 11:37:31,140 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-81657573:ctest-vn-08832836', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-81657573', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3393200983749117479', 'uuid-lslong': '11170114988200707500'}, 'enable': 'true', 'created': '2025-04-09T11:37:28', 'last-modified': '2025-04-09T11:37:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.096248'}
2025-04-09 11:37:31,147 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-09 11:37:31,147 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08832836 passed
2025-04-09 11:37:31,148 - DEBUG - ====Verifying policy data for ctest-vn-08832836 in API_Server ======
2025-04-09 11:37:31,148 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-09 11:37:31,155 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a0e2c731-5fae-4fc9-867a-34a900af99d2
2025-04-09 11:37:31,171 - DEBUG - Requesting: http://10.0.0.38:8082/project/4ce69977-83a8-42a9-8442-bdcafc55bce2
2025-04-09 11:37:31,246 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2f171251-17df-4627-9b04-386663f845ac
2025-04-09 11:37:31,259 - DEBUG - ==>Verifying data for policy with id: b3035d4b-c89c-4283-81d9-01102bd51f93, fqn: ['default-domain', 'ctest-TestBasicPolicy-81657573', 'ctest-policy-allow-all-90210249']
2025-04-09 11:37:31,259 - INFO - VN ctest-vn-08832836 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-09 11:37:31,259 - DEBUG - Verifying the vn in opserver
2025-04-09 11:37:31,259 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-81657573:ctest-vn-08832836 virtual network link through opserver 10.0.0.38
2025-04-09 11:37:31,259 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-09 11:37:31,556 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-09 11:37:31,672 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-81657573:ctest-vn-08832836', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-81657573:ctest-vn-08832836?flat'}
2025-04-09 11:37:31,672 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-81657573:ctest-vn-08832836 is found in opserver
2025-04-09 11:37:31,687 - DEBUG - Do not have enough data to verify VN in agent
2025-04-09 11:37:31,693 - DEBUG - VRF ids for VN ctest-vn-08832836: {}
2025-04-09 11:37:31,693 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-09 11:37:31,716 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a0e2c731-5fae-4fc9-867a-34a900af99d2
2025-04-09 11:37:31,762 - DEBUG - Requesting: http://10.0.0.38:8082/project/4ce69977-83a8-42a9-8442-bdcafc55bce2
2025-04-09 11:37:31,882 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1b0d2527-ce38-4076-b887-7beb5615ab4f
2025-04-09 11:37:31,934 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1b0d2527-ce38-4076-b887-7beb5615ab4f
2025-04-09 11:37:31,947 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47cdfba2-d0ea-4598-8fef-4995eb5bb567
2025-04-09 11:37:31,965 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47cdfba2-d0ea-4598-8fef-4995eb5bb567
2025-04-09 11:37:31,981 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/89ea7b8b-676e-4179-91fd-9d815f527344
2025-04-09 11:37:31,994 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-09 11:37:31,994 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1b0d2527-ce38-4076-b887-7beb5615ab4f
2025-04-09 11:37:32,010 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47cdfba2-d0ea-4598-8fef-4995eb5bb567
2025-04-09 11:37:32,054 - INFO - Verified VN network id 10 for VN 1b0d2527-ce38-4076-b887-7beb5615ab4f
2025-04-09 11:37:32,054 - INFO - Verifications in API Server for VN ctest-vn-95080394 passed
2025-04-09 11:37:32,055 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1b0d2527-ce38-4076-b887-7beb5615ab4f
2025-04-09 11:37:32,072 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47cdfba2-d0ea-4598-8fef-4995eb5bb567
2025-04-09 11:37:32,099 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/47cdfba2-d0ea-4598-8fef-4995eb5bb567
2025-04-09 11:37:32,119 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/89ea7b8b-676e-4179-91fd-9d815f527344
2025-04-09 11:37:32,139 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-81657573:ctest-vn-95080394', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-81657573', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1949255066615038070', 'uuid-lslong': '13296732675526470479'}, 'enable': 'true', 'created': '2025-04-09T11:37:29', 'last-modified': '2025-04-09T11:37:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.811026'}
2025-04-09 11:37:32,147 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-09 11:37:32,147 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95080394 passed
2025-04-09 11:37:32,147 - DEBUG - ====Verifying policy data for ctest-vn-95080394 in API_Server ======
2025-04-09 11:37:32,147 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-09 11:37:32,163 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a0e2c731-5fae-4fc9-867a-34a900af99d2
2025-04-09 11:37:32,254 - DEBUG - Requesting: http://10.0.0.38:8082/project/4ce69977-83a8-42a9-8442-bdcafc55bce2
2025-04-09 11:37:32,399 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1b0d2527-ce38-4076-b887-7beb5615ab4f
2025-04-09 11:37:32,415 - DEBUG - ==>Verifying data for policy with id: b3035d4b-c89c-4283-81d9-01102bd51f93, fqn: ['default-domain', 'ctest-TestBasicPolicy-81657573', 'ctest-policy-allow-all-90210249']
2025-04-09 11:37:32,415 - INFO - VN ctest-vn-95080394 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-09 11:37:32,415 - DEBUG - Verifying the vn in opserver
2025-04-09 11:37:32,415 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-81657573:ctest-vn-95080394 virtual network link through opserver 10.0.0.38
2025-04-09 11:37:32,415 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-09 11:37:32,439 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-81657573:ctest-vn-95080394', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-81657573:ctest-vn-95080394?flat'}
2025-04-09 11:37:32,440 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-81657573:ctest-vn-95080394 is found in opserver
2025-04-09 11:37:32,454 - DEBUG - Do not have enough data to verify VN in agent
2025-04-09 11:37:32,463 - DEBUG - VRF ids for VN ctest-vn-95080394: {}
2025-04-09 11:37:32,575 - DEBUG - Services list from nova: [