2025-01-02 02:00:12,066 - INFO - Reading existing Domain with UUID 89a6a7fa-b5bc-4ab0-88aa-35431bfe084f
2025-01-02 02:00:12,079 - INFO - Using existing domain ['admin_domain'](89a6a7fa-b5bc-4ab0-88aa-35431bfe084f)
2025-01-02 02:00:12,291 - INFO - Project ctest-TestBasicPolicy-38573048 not found, creating it
2025-01-02 02:00:12,818 - INFO - Created Project:ctest-TestBasicPolicy-38573048, ID : 7b3b9dde-0b01-4bb3-9d45-192f61abd40f
2025-01-02 02:00:14,537 - INFO - ================================================================================
2025-01-02 02:00:14,537 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-02 02:00:14,537 - 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-02 02:00:14,929 - DEBUG - Nothing to compare xmpp stats {'10.0.0.47': {'10.0.0.47': '0'}} with
2025-01-02 02:00:14,930 - INFO - Initial checks done. Running the testcase now
2025-01-02 02:00:14,930 - INFO -
2025-01-02 02:00:15,695 - DEBUG - Response for create_network : {'network': {'id': 'faa48854-3431-4dc2-94cb-2d41198ea7d6', 'name': 'ctest-vn-49365109', 'tenant_id': '7b3b9dde0b014bb39d45192f61abd40f', 'project_id': '7b3b9dde0b014bb39d45192f61abd40f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-38573048', 'ctest-vn-49365109'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-01-02 02:00:15,969 - DEBUG - Response for create_subnet : {'subnet': {'id': '0669b1f2-8305-4892-9749-f109ef51b8a9', 'name': '', 'tenant_id': '7b3b9dde0b014bb39d45192f61abd40f', 'network_id': 'faa48854-3431-4dc2-94cb-2d41198ea7d6', 'ip_version': 4, 'cidr': '30.223.37.192/26', 'allocation_pools': [{'start': '30.223.37.194', 'end': '30.223.37.254'}], 'gateway_ip': '30.223.37.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-01-02T02:00:15.850376', 'updated_at': '2025-01-02T02:00:15.850376', 'dns_server_address': '30.223.37.194', 'tags': [], 'project_id': '7b3b9dde0b014bb39d45192f61abd40f'}}
2025-01-02 02:00:16,038 - INFO - Created VN ctest-vn-49365109
2025-01-02 02:00:16,092 - DEBUG - VN ctest-vn-49365109 UUID is faa48854-3431-4dc2-94cb-2d41198ea7d6
2025-01-02 02:00:16,609 - DEBUG - Response for create_network : {'network': {'id': 'd7d774a7-f408-4463-805b-08d12f33c93e', 'name': 'ctest-vn-83580402', 'tenant_id': '7b3b9dde0b014bb39d45192f61abd40f', 'project_id': '7b3b9dde0b014bb39d45192f61abd40f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-38573048', 'ctest-vn-83580402'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-01-02 02:00:16,869 - DEBUG - Response for create_subnet : {'subnet': {'id': '4bb0682c-2db1-46ac-908a-8fd2e0943d89', 'name': '', 'tenant_id': '7b3b9dde0b014bb39d45192f61abd40f', 'network_id': 'd7d774a7-f408-4463-805b-08d12f33c93e', 'ip_version': 4, 'cidr': '200.251.27.128/26', 'allocation_pools': [{'start': '200.251.27.130', 'end': '200.251.27.190'}], 'gateway_ip': '200.251.27.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-01-02T02:00:16.752442', 'updated_at': '2025-01-02T02:00:16.752442', 'dns_server_address': '200.251.27.130', 'tags': [], 'project_id': '7b3b9dde0b014bb39d45192f61abd40f'}}
2025-01-02 02:00:16,938 - INFO - Created VN ctest-vn-83580402
2025-01-02 02:00:17,000 - DEBUG - VN ctest-vn-83580402 UUID is d7d774a7-f408-4463-805b-08d12f33c93e
2025-01-02 02:00:17,213 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-38573048:ctest-vn-49365109, 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-38573048:ctest-vn-83580402, 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-02 02:00:17,665 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'faa48854-3431-4dc2-94cb-2d41198ea7d6', 'name': 'ctest-vn-49365109', 'tenant_id': '7b3b9dde0b014bb39d45192f61abd40f', 'project_id': '7b3b9dde0b014bb39d45192f61abd40f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0669b1f2-8305-4892-9749-f109ef51b8a9'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-38573048', 'ctest-vn-49365109'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-38573048', 'ctest-policy-allow-all-30108994']], 'subnet_ipam': [{'subnet_cidr': '30.223.37.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-01-02T02:00:15.590695', 'updated_at': '2025-01-02T02:00:15.865229'}}
2025-01-02 02:00:18,036 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd7d774a7-f408-4463-805b-08d12f33c93e', 'name': 'ctest-vn-83580402', 'tenant_id': '7b3b9dde0b014bb39d45192f61abd40f', 'project_id': '7b3b9dde0b014bb39d45192f61abd40f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4bb0682c-2db1-46ac-908a-8fd2e0943d89'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-38573048', 'ctest-vn-83580402'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-38573048', 'ctest-policy-allow-all-30108994']], 'subnet_ipam': [{'subnet_cidr': '200.251.27.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-01-02T02:00:16.528172', 'updated_at': '2025-01-02T02:00:16.767382'}}
2025-01-02 02:00:18,256 - DEBUG - Requesting: https://10.0.0.47:8082/domains
2025-01-02 02:00:18,603 - DEBUG - Requesting: https://10.0.0.47:8082/domains
2025-01-02 02:00:18,685 - DEBUG - Requesting: https://10.0.0.47:8082/domain/89a6a7fa-b5bc-4ab0-88aa-35431bfe084f
2025-01-02 02:00:18,745 - DEBUG - Requesting: https://10.0.0.47:8082/project/7b3b9dde-0b01-4bb3-9d45-192f61abd40f
2025-01-02 02:00:18,838 - DEBUG - Requesting: https://10.0.0.47:8082/virtual-network/faa48854-3431-4dc2-94cb-2d41198ea7d6
2025-01-02 02:00:18,899 - DEBUG - Requesting: https://10.0.0.47:8082/virtual-network/faa48854-3431-4dc2-94cb-2d41198ea7d6
2025-01-02 02:00:18,958 - DEBUG - Requesting: https://10.0.0.47:8082/routing-instance/99059bf5-1ac4-4bc3-9ec2-bd3962d8d0ff
2025-01-02 02:00:19,013 - DEBUG - Requesting: https://10.0.0.47:8082/routing-instance/99059bf5-1ac4-4bc3-9ec2-bd3962d8d0ff
2025-01-02 02:00:19,069 - DEBUG - Requesting: https://10.0.0.47:8082/route-target/20b5dc88-a4da-42a3-87ea-7b8fef4e7567
2025-01-02 02:00:19,133 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-02 02:00:19,133 - DEBUG - Requesting: https://10.0.0.47:8082/virtual-network/faa48854-3431-4dc2-94cb-2d41198ea7d6
2025-01-02 02:00:19,190 - DEBUG - Requesting: https://10.0.0.47:8082/routing-instance/99059bf5-1ac4-4bc3-9ec2-bd3962d8d0ff
2025-01-02 02:00:19,261 - INFO - Verified VN network id 8 for VN faa48854-3431-4dc2-94cb-2d41198ea7d6
2025-01-02 02:00:19,261 - INFO - Verifications in API Server for VN ctest-vn-49365109 passed
2025-01-02 02:00:19,261 - DEBUG - Requesting: https://10.0.0.47:8082/virtual-network/faa48854-3431-4dc2-94cb-2d41198ea7d6
2025-01-02 02:00:19,327 - DEBUG - Requesting: https://10.0.0.47:8082/routing-instance/99059bf5-1ac4-4bc3-9ec2-bd3962d8d0ff
2025-01-02 02:00:19,382 - DEBUG - Requesting: https://10.0.0.47:8082/routing-instance/99059bf5-1ac4-4bc3-9ec2-bd3962d8d0ff
2025-01-02 02:00:19,442 - DEBUG - Requesting: https://10.0.0.47:8082/route-target/20b5dc88-a4da-42a3-87ea-7b8fef4e7567
2025-01-02 02:00:19,549 - DEBUG - Control-node 10.0.0.47 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-38573048:ctest-vn-49365109', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38573048', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18060710300896808386', 'uuid-lslong': '10721713095510501334'}, 'enable': 'true', 'created': '2025-01-02T02:00:15', 'last-modified': '2025-01-02T02:00:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.926078'}
2025-01-02 02:00:19,608 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-02 02:00:19,608 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49365109 passed
2025-01-02 02:00:19,608 - DEBUG - ====Verifying policy data for ctest-vn-49365109 in API_Server ======
2025-01-02 02:00:19,608 - DEBUG - Requesting: https://10.0.0.47:8082/domains
2025-01-02 02:00:19,665 - DEBUG - Requesting: https://10.0.0.47:8082/domain/89a6a7fa-b5bc-4ab0-88aa-35431bfe084f
2025-01-02 02:00:19,730 - DEBUG - Requesting: https://10.0.0.47:8082/project/7b3b9dde-0b01-4bb3-9d45-192f61abd40f
2025-01-02 02:00:19,823 - DEBUG - Requesting: https://10.0.0.47:8082/virtual-network/faa48854-3431-4dc2-94cb-2d41198ea7d6
2025-01-02 02:00:19,883 - DEBUG - ==>Verifying data for policy with id: 8fba791f-3749-4a78-a653-4d650b3000f4, fqn: ['admin_domain', 'ctest-TestBasicPolicy-38573048', 'ctest-policy-allow-all-30108994']
2025-01-02 02:00:19,883 - INFO - VN ctest-vn-49365109 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-02 02:00:19,883 - DEBUG - Verifying the vn in opserver
2025-01-02 02:00:19,883 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-38573048:ctest-vn-49365109 virtual network link through opserver 10.0.0.47
2025-01-02 02:00:19,884 - DEBUG - Requesting: https://10.0.0.47:8081/analytics/uves/virtual-networks
2025-01-02 02:00:20,236 - DEBUG - Requesting: https://10.0.0.47:8081/analytics/uves/virtual-networks
2025-01-02 02:00:20,365 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-38573048:ctest-vn-49365109', 'href': 'https://10.0.0.47:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-38573048:ctest-vn-49365109?flat'}
2025-01-02 02:00:20,365 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-38573048:ctest-vn-49365109 is found in opserver
2025-01-02 02:00:20,469 - DEBUG - Do not have enough data to verify VN in agent
2025-01-02 02:00:20,521 - DEBUG - VRF ids for VN ctest-vn-49365109: {}
2025-01-02 02:00:20,521 - DEBUG - Requesting: https://10.0.0.47:8082/domains
2025-01-02 02:00:20,573 - DEBUG - Requesting: https://10.0.0.47:8082/domain/89a6a7fa-b5bc-4ab0-88aa-35431bfe084f
2025-01-02 02:00:20,642 - DEBUG - Requesting: https://10.0.0.47:8082/project/7b3b9dde-0b01-4bb3-9d45-192f61abd40f
2025-01-02 02:00:20,738 - DEBUG - Requesting: https://10.0.0.47:8082/virtual-network/d7d774a7-f408-4463-805b-08d12f33c93e
2025-01-02 02:00:20,804 - DEBUG - Requesting: https://10.0.0.47:8082/virtual-network/d7d774a7-f408-4463-805b-08d12f33c93e
2025-01-02 02:00:20,863 - DEBUG - Requesting: https://10.0.0.47:8082/routing-instance/d7239a81-df42-4b39-bdb5-a7be1a8da5d6
2025-01-02 02:00:20,921 - DEBUG - Requesting: https://10.0.0.47:8082/routing-instance/d7239a81-df42-4b39-bdb5-a7be1a8da5d6
2025-01-02 02:00:20,977 - DEBUG - Requesting: https://10.0.0.47:8082/route-target/2c58f71a-b3dc-4bce-820f-a2d91d2d75aa
2025-01-02 02:00:21,068 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-02 02:00:21,068 - DEBUG - Requesting: https://10.0.0.47:8082/virtual-network/d7d774a7-f408-4463-805b-08d12f33c93e
2025-01-02 02:00:21,126 - DEBUG - Requesting: https://10.0.0.47:8082/routing-instance/d7239a81-df42-4b39-bdb5-a7be1a8da5d6
2025-01-02 02:00:21,191 - INFO - Verified VN network id 9 for VN d7d774a7-f408-4463-805b-08d12f33c93e
2025-01-02 02:00:21,191 - INFO - Verifications in API Server for VN ctest-vn-83580402 passed
2025-01-02 02:00:21,191 - DEBUG - Requesting: https://10.0.0.47:8082/virtual-network/d7d774a7-f408-4463-805b-08d12f33c93e
2025-01-02 02:00:21,253 - DEBUG - Requesting: https://10.0.0.47:8082/routing-instance/d7239a81-df42-4b39-bdb5-a7be1a8da5d6
2025-01-02 02:00:21,309 - DEBUG - Requesting: https://10.0.0.47:8082/routing-instance/d7239a81-df42-4b39-bdb5-a7be1a8da5d6
2025-01-02 02:00:21,365 - DEBUG - Requesting: https://10.0.0.47:8082/route-target/2c58f71a-b3dc-4bce-820f-a2d91d2d75aa
2025-01-02 02:00:21,477 - DEBUG - Control-node 10.0.0.47 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-38573048:ctest-vn-83580402', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38573048', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15553028102849840227', 'uuid-lslong': '9248995954268555582'}, 'enable': 'true', 'created': '2025-01-02T02:00:16', 'last-modified': '2025-01-02T02:00:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.476842'}
2025-01-02 02:00:21,534 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-02 02:00:21,534 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83580402 passed
2025-01-02 02:00:21,534 - DEBUG - ====Verifying policy data for ctest-vn-83580402 in API_Server ======
2025-01-02 02:00:21,534 - DEBUG - Requesting: https://10.0.0.47:8082/domains
2025-01-02 02:00:21,589 - DEBUG - Requesting: https://10.0.0.47:8082/domain/89a6a7fa-b5bc-4ab0-88aa-35431bfe084f
2025-01-02 02:00:21,653 - DEBUG - Requesting: https://10.0.0.47:8082/project/7b3b9dde-0b01-4bb3-9d45-192f61abd40f
2025-01-02 02:00:21,735 - DEBUG - Requesting: https://10.0.0.47:8082/virtual-network/d7d774a7-f408-4463-805b-08d12f33c93e
2025-01-02 02:00:21,798 - DEBUG - ==>Verifying data for policy with id: 8fba791f-3749-4a78-a653-4d650b3000f4, fqn: ['admin_domain', 'ctest-TestBasicPolicy-38573048', 'ctest-policy-allow-all-30108994']
2025-01-02 02:00:21,798 - INFO - VN ctest-vn-83580402 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-02 02:00:21,798 - DEBUG - Verifying the vn in opserver
2025-01-02 02:00:21,798 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-38573048:ctest-vn-83580402 virtual network link through opserver 10.0.0.47
2025-01-02 02:00:21,798 - DEBUG - Requesting: https://10.0.0.47:8081/analytics/uves/virtual-networks
2025-01-02 02:00:21,858 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-38573048:ctest-vn-83580402', 'href': 'https://10.0.0.47:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-38573048:ctest-vn-83580402?flat'}
2025-01-02 02:00:21,858 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-38573048:ctest-vn-83580402 is found in opserver
2025-01-02 02:00:21,957 - DEBUG - Do not have enough data to verify VN in agent
2025-01-02 02:00:22,005 - DEBUG - VRF ids for VN ctest-vn-83580402: {}
2025-01-02 02:00:22,076 - DEBUG - Services list from nova: [