2024-12-26 01:56:39,197 - INFO - Reading existing Domain with UUID e87579be-da4b-4b50-b3a2-8e191a3368e1
2024-12-26 01:56:39,210 - INFO - Using existing domain ['admin_domain'](e87579be-da4b-4b50-b3a2-8e191a3368e1)
2024-12-26 01:56:39,417 - INFO - Project ctest-TestBasicPolicy-04918215 not found, creating it
2024-12-26 01:56:39,938 - INFO - Created Project:ctest-TestBasicPolicy-04918215, ID : 1862ca63-f480-42a3-8a24-f593345f70bc
2024-12-26 01:56:41,725 - INFO - ================================================================================
2024-12-26 01:56:41,726 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-12-26 01:56:41,726 - 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-12-26 01:56:42,115 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.0.0.29': '0'}} with
2024-12-26 01:56:42,115 - INFO - Initial checks done. Running the testcase now
2024-12-26 01:56:42,116 - INFO -
2024-12-26 01:56:42,935 - DEBUG - Response for create_network : {'network': {'id': 'c4638ccf-5fa8-4be3-81c1-1890d34bef78', 'name': 'ctest-vn-15617161', 'tenant_id': '1862ca63f48042a38a24f593345f70bc', 'project_id': '1862ca63f48042a38a24f593345f70bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-04918215', 'ctest-vn-15617161'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2024-12-26 01:56:43,183 - DEBUG - Response for create_subnet : {'subnet': {'id': '6baf0eab-0c88-46a1-b1d1-2f90527db1c7', 'name': '', 'tenant_id': '1862ca63f48042a38a24f593345f70bc', 'network_id': 'c4638ccf-5fa8-4be3-81c1-1890d34bef78', 'ip_version': 4, 'cidr': '141.95.247.64/26', 'allocation_pools': [{'start': '141.95.247.66', 'end': '141.95.247.126'}], 'gateway_ip': '141.95.247.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-12-26T01:56:43.077404', 'updated_at': '2024-12-26T01:56:43.077404', 'dns_server_address': '141.95.247.66', 'tags': [], 'project_id': '1862ca63f48042a38a24f593345f70bc'}}
2024-12-26 01:56:43,248 - INFO - Created VN ctest-vn-15617161
2024-12-26 01:56:43,310 - DEBUG - VN ctest-vn-15617161 UUID is c4638ccf-5fa8-4be3-81c1-1890d34bef78
2024-12-26 01:56:43,892 - DEBUG - Response for create_network : {'network': {'id': 'c87d31f6-badf-4232-a2b5-b97748602f29', 'name': 'ctest-vn-37468131', 'tenant_id': '1862ca63f48042a38a24f593345f70bc', 'project_id': '1862ca63f48042a38a24f593345f70bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-04918215', 'ctest-vn-37468131'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2024-12-26 01:56:44,185 - DEBUG - Response for create_subnet : {'subnet': {'id': '4bca74ac-d1b3-41d8-86db-c183c0c71563', 'name': '', 'tenant_id': '1862ca63f48042a38a24f593345f70bc', 'network_id': 'c87d31f6-badf-4232-a2b5-b97748602f29', 'ip_version': 4, 'cidr': '31.180.240.0/26', 'allocation_pools': [{'start': '31.180.240.2', 'end': '31.180.240.62'}], 'gateway_ip': '31.180.240.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2024-12-26T01:56:44.069774', 'updated_at': '2024-12-26T01:56:44.069774', 'dns_server_address': '31.180.240.2', 'tags': [], 'project_id': '1862ca63f48042a38a24f593345f70bc'}}
2024-12-26 01:56:44,253 - INFO - Created VN ctest-vn-37468131
2024-12-26 01:56:44,314 - DEBUG - VN ctest-vn-37468131 UUID is c87d31f6-badf-4232-a2b5-b97748602f29
2024-12-26 01:56:44,543 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-04918215:ctest-vn-15617161, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-04918215:ctest-vn-37468131, 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-12-26 01:56:44,986 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c4638ccf-5fa8-4be3-81c1-1890d34bef78', 'name': 'ctest-vn-15617161', 'tenant_id': '1862ca63f48042a38a24f593345f70bc', 'project_id': '1862ca63f48042a38a24f593345f70bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6baf0eab-0c88-46a1-b1d1-2f90527db1c7'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-04918215', 'ctest-vn-15617161'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-04918215', 'ctest-policy-allow-all-74175625']], 'subnet_ipam': [{'subnet_cidr': '141.95.247.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2024-12-26T01:56:42.858762', 'updated_at': '2024-12-26T01:56:43.091167'}}
2024-12-26 01:56:45,438 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c87d31f6-badf-4232-a2b5-b97748602f29', 'name': 'ctest-vn-37468131', 'tenant_id': '1862ca63f48042a38a24f593345f70bc', 'project_id': '1862ca63f48042a38a24f593345f70bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4bca74ac-d1b3-41d8-86db-c183c0c71563'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-04918215', 'ctest-vn-37468131'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-04918215', 'ctest-policy-allow-all-74175625']], 'subnet_ipam': [{'subnet_cidr': '31.180.240.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2024-12-26T01:56:43.785366', 'updated_at': '2024-12-26T01:56:44.085871'}}
2024-12-26 01:56:45,643 - DEBUG - Requesting: https://10.0.0.29:8082/domains
2024-12-26 01:56:45,993 - DEBUG - Requesting: https://10.0.0.29:8082/domains
2024-12-26 01:56:46,083 - DEBUG - Requesting: https://10.0.0.29:8082/domain/e87579be-da4b-4b50-b3a2-8e191a3368e1
2024-12-26 01:56:46,147 - DEBUG - Requesting: https://10.0.0.29:8082/project/1862ca63-f480-42a3-8a24-f593345f70bc
2024-12-26 01:56:46,240 - DEBUG - Requesting: https://10.0.0.29:8082/virtual-network/c4638ccf-5fa8-4be3-81c1-1890d34bef78
2024-12-26 01:56:46,301 - DEBUG - Requesting: https://10.0.0.29:8082/virtual-network/c4638ccf-5fa8-4be3-81c1-1890d34bef78
2024-12-26 01:56:46,360 - DEBUG - Requesting: https://10.0.0.29:8082/routing-instance/4f0876a3-e84a-4a83-8851-32c68c052dc1
2024-12-26 01:56:46,415 - DEBUG - Requesting: https://10.0.0.29:8082/routing-instance/4f0876a3-e84a-4a83-8851-32c68c052dc1
2024-12-26 01:56:46,472 - DEBUG - Requesting: https://10.0.0.29:8082/route-target/13d6a5ea-cbf3-4066-923c-50e40d7c90a2
2024-12-26 01:56:46,527 - DEBUG - Route Targets: ['target:64512:8000005']
2024-12-26 01:56:46,527 - DEBUG - Requesting: https://10.0.0.29:8082/virtual-network/c4638ccf-5fa8-4be3-81c1-1890d34bef78
2024-12-26 01:56:46,585 - DEBUG - Requesting: https://10.0.0.29:8082/routing-instance/4f0876a3-e84a-4a83-8851-32c68c052dc1
2024-12-26 01:56:46,648 - INFO - Verified VN network id 7 for VN c4638ccf-5fa8-4be3-81c1-1890d34bef78
2024-12-26 01:56:46,648 - INFO - Verifications in API Server for VN ctest-vn-15617161 passed
2024-12-26 01:56:46,648 - DEBUG - Requesting: https://10.0.0.29:8082/virtual-network/c4638ccf-5fa8-4be3-81c1-1890d34bef78
2024-12-26 01:56:46,704 - DEBUG - Requesting: https://10.0.0.29:8082/routing-instance/4f0876a3-e84a-4a83-8851-32c68c052dc1
2024-12-26 01:56:46,760 - DEBUG - Requesting: https://10.0.0.29:8082/routing-instance/4f0876a3-e84a-4a83-8851-32c68c052dc1
2024-12-26 01:56:46,812 - DEBUG - Requesting: https://10.0.0.29:8082/route-target/13d6a5ea-cbf3-4066-923c-50e40d7c90a2
2024-12-26 01:56:46,927 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-04918215:ctest-vn-15617161', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04918215', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14151309276419214307', 'uuid-lslong': '9349781311697186680'}, 'enable': 'true', 'created': '2024-12-26T01:56:42', 'last-modified': '2024-12-26T01:56:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.975331'}
2024-12-26 01:56:46,984 - DEBUG - Route Targets: ['target:64512:8000005']
2024-12-26 01:56:46,985 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15617161 passed
2024-12-26 01:56:46,985 - DEBUG - ====Verifying policy data for ctest-vn-15617161 in API_Server ======
2024-12-26 01:56:46,985 - DEBUG - Requesting: https://10.0.0.29:8082/domains
2024-12-26 01:56:47,039 - DEBUG - Requesting: https://10.0.0.29:8082/domain/e87579be-da4b-4b50-b3a2-8e191a3368e1
2024-12-26 01:56:47,100 - DEBUG - Requesting: https://10.0.0.29:8082/project/1862ca63-f480-42a3-8a24-f593345f70bc
2024-12-26 01:56:47,184 - DEBUG - Requesting: https://10.0.0.29:8082/virtual-network/c4638ccf-5fa8-4be3-81c1-1890d34bef78
2024-12-26 01:56:47,241 - DEBUG - ==>Verifying data for policy with id: d49b18b8-d79b-4f8c-b267-941f22c340b6, fqn: ['admin_domain', 'ctest-TestBasicPolicy-04918215', 'ctest-policy-allow-all-74175625']
2024-12-26 01:56:47,241 - INFO - VN ctest-vn-15617161 Policy verification: verify_vn_policy_in_api_server, status: True
2024-12-26 01:56:47,241 - DEBUG - Verifying the vn in opserver
2024-12-26 01:56:47,241 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-04918215:ctest-vn-15617161 virtual network link through opserver 10.0.0.29
2024-12-26 01:56:47,241 - DEBUG - Requesting: https://10.0.0.29:8081/analytics/uves/virtual-networks
2024-12-26 01:56:47,594 - DEBUG - Requesting: https://10.0.0.29:8081/analytics/uves/virtual-networks
2024-12-26 01:56:47,724 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-04918215:ctest-vn-15617161', 'href': 'https://10.0.0.29:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-04918215:ctest-vn-15617161?flat'}
2024-12-26 01:56:47,724 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-04918215:ctest-vn-15617161 is found in opserver
2024-12-26 01:56:47,832 - DEBUG - Do not have enough data to verify VN in agent
2024-12-26 01:56:47,884 - DEBUG - VRF ids for VN ctest-vn-15617161: {}
2024-12-26 01:56:47,884 - DEBUG - Requesting: https://10.0.0.29:8082/domains
2024-12-26 01:56:47,943 - DEBUG - Requesting: https://10.0.0.29:8082/domain/e87579be-da4b-4b50-b3a2-8e191a3368e1
2024-12-26 01:56:48,011 - DEBUG - Requesting: https://10.0.0.29:8082/project/1862ca63-f480-42a3-8a24-f593345f70bc
2024-12-26 01:56:48,096 - DEBUG - Requesting: https://10.0.0.29:8082/virtual-network/c87d31f6-badf-4232-a2b5-b97748602f29
2024-12-26 01:56:48,157 - DEBUG - Requesting: https://10.0.0.29:8082/virtual-network/c87d31f6-badf-4232-a2b5-b97748602f29
2024-12-26 01:56:48,212 - DEBUG - Requesting: https://10.0.0.29:8082/routing-instance/62b8928f-77b3-427a-ab00-b07517959ee9
2024-12-26 01:56:48,268 - DEBUG - Requesting: https://10.0.0.29:8082/routing-instance/62b8928f-77b3-427a-ab00-b07517959ee9
2024-12-26 01:56:48,323 - DEBUG - Requesting: https://10.0.0.29:8082/route-target/0c6bee71-63b9-4a38-93ee-e8ddcf1fa80c
2024-12-26 01:56:48,375 - DEBUG - Route Targets: ['target:64512:8000006']
2024-12-26 01:56:48,375 - DEBUG - Requesting: https://10.0.0.29:8082/virtual-network/c87d31f6-badf-4232-a2b5-b97748602f29
2024-12-26 01:56:48,436 - DEBUG - Requesting: https://10.0.0.29:8082/routing-instance/62b8928f-77b3-427a-ab00-b07517959ee9
2024-12-26 01:56:48,500 - INFO - Verified VN network id 8 for VN c87d31f6-badf-4232-a2b5-b97748602f29
2024-12-26 01:56:48,500 - INFO - Verifications in API Server for VN ctest-vn-37468131 passed
2024-12-26 01:56:48,501 - DEBUG - Requesting: https://10.0.0.29:8082/virtual-network/c87d31f6-badf-4232-a2b5-b97748602f29
2024-12-26 01:56:48,561 - DEBUG - Requesting: https://10.0.0.29:8082/routing-instance/62b8928f-77b3-427a-ab00-b07517959ee9
2024-12-26 01:56:48,623 - DEBUG - Requesting: https://10.0.0.29:8082/routing-instance/62b8928f-77b3-427a-ab00-b07517959ee9
2024-12-26 01:56:48,679 - DEBUG - Requesting: https://10.0.0.29:8082/route-target/0c6bee71-63b9-4a38-93ee-e8ddcf1fa80c
2024-12-26 01:56:48,796 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-04918215:ctest-vn-37468131', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04918215', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14446758115441328690', 'uuid-lslong': '11724481126895464233'}, 'enable': 'true', 'created': '2024-12-26T01:56:43', 'last-modified': '2024-12-26T01:56:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.458447'}
2024-12-26 01:56:48,852 - DEBUG - Route Targets: ['target:64512:8000006']
2024-12-26 01:56:48,852 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37468131 passed
2024-12-26 01:56:48,852 - DEBUG - ====Verifying policy data for ctest-vn-37468131 in API_Server ======
2024-12-26 01:56:48,853 - DEBUG - Requesting: https://10.0.0.29:8082/domains
2024-12-26 01:56:48,915 - DEBUG - Requesting: https://10.0.0.29:8082/domain/e87579be-da4b-4b50-b3a2-8e191a3368e1
2024-12-26 01:56:48,975 - DEBUG - Requesting: https://10.0.0.29:8082/project/1862ca63-f480-42a3-8a24-f593345f70bc
2024-12-26 01:56:49,056 - DEBUG - Requesting: https://10.0.0.29:8082/virtual-network/c87d31f6-badf-4232-a2b5-b97748602f29
2024-12-26 01:56:49,113 - DEBUG - ==>Verifying data for policy with id: d49b18b8-d79b-4f8c-b267-941f22c340b6, fqn: ['admin_domain', 'ctest-TestBasicPolicy-04918215', 'ctest-policy-allow-all-74175625']
2024-12-26 01:56:49,113 - INFO - VN ctest-vn-37468131 Policy verification: verify_vn_policy_in_api_server, status: True
2024-12-26 01:56:49,113 - DEBUG - Verifying the vn in opserver
2024-12-26 01:56:49,113 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-04918215:ctest-vn-37468131 virtual network link through opserver 10.0.0.29
2024-12-26 01:56:49,113 - DEBUG - Requesting: https://10.0.0.29:8081/analytics/uves/virtual-networks
2024-12-26 01:56:49,175 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-04918215:ctest-vn-37468131', 'href': 'https://10.0.0.29:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-04918215:ctest-vn-37468131?flat'}
2024-12-26 01:56:49,175 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-04918215:ctest-vn-37468131 is found in opserver
2024-12-26 01:56:49,283 - DEBUG - Do not have enough data to verify VN in agent
2024-12-26 01:56:49,335 - DEBUG - VRF ids for VN ctest-vn-37468131: {}
2024-12-26 01:56:49,404 - DEBUG - Services list from nova: [