2024-08-29 18:07:06,886 - INFO - Domain Default found not creating
2024-08-29 18:07:07,086 - INFO - Project ctest-TestBasicPolicy-15379491 not found, creating it
2024-08-29 18:07:07,586 - INFO - Created Project:ctest-TestBasicPolicy-15379491, ID : 6a2288c1-811e-41e2-b4d0-6170c5330136
2024-08-29 18:07:09,377 - INFO - ================================================================================
2024-08-29 18:07:09,377 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-29 18:07:09,377 - 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-08-29 18:07:09,651 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.10': '0'}} with
2024-08-29 18:07:09,651 - INFO - Initial checks done. Running the testcase now
2024-08-29 18:07:09,651 - INFO -
2024-08-29 18:07:10,551 - DEBUG - Response for create_network : {'network': {'id': '8719bb07-ac10-48a8-b4e1-6bc5c3eaa2b8', 'name': 'ctest-vn-09642938', 'tenant_id': '6a2288c1811e41e2b4d06170c5330136', 'project_id': '6a2288c1811e41e2b4d06170c5330136', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15379491', 'ctest-vn-09642938'], 'port_security_enabled': True, 'description': ''}}
2024-08-29 18:07:10,744 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c37538c4-aecd-4846-9bbd-f50508927711', 'name': '', 'tenant_id': '6a2288c1811e41e2b4d06170c5330136', 'network_id': '8719bb07-ac10-48a8-b4e1-6bc5c3eaa2b8', 'ip_version': 4, 'cidr': '49.229.6.192/26', 'allocation_pools': [{'start': '49.229.6.194', 'end': '49.229.6.254'}], 'gateway_ip': '49.229.6.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.229.6.194', 'tags': [], 'project_id': '6a2288c1811e41e2b4d06170c5330136'}}
2024-08-29 18:07:10,770 - INFO - Created VN ctest-vn-09642938
2024-08-29 18:07:10,825 - DEBUG - VN ctest-vn-09642938 UUID is 8719bb07-ac10-48a8-b4e1-6bc5c3eaa2b8
2024-08-29 18:07:11,184 - DEBUG - Response for create_network : {'network': {'id': '10764eb0-92d0-4f2d-bc6e-a01920c91087', 'name': 'ctest-vn-00457729', 'tenant_id': '6a2288c1811e41e2b4d06170c5330136', 'project_id': '6a2288c1811e41e2b4d06170c5330136', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15379491', 'ctest-vn-00457729'], 'port_security_enabled': True, 'description': ''}}
2024-08-29 18:07:11,413 - DEBUG - Response for create_subnet : {'subnet': {'id': '8a3cb5d0-ed47-41b4-bd49-880a1deb0c86', 'name': '', 'tenant_id': '6a2288c1811e41e2b4d06170c5330136', 'network_id': '10764eb0-92d0-4f2d-bc6e-a01920c91087', 'ip_version': 4, 'cidr': '16.6.49.128/26', 'allocation_pools': [{'start': '16.6.49.130', 'end': '16.6.49.190'}], 'gateway_ip': '16.6.49.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '16.6.49.130', 'tags': [], 'project_id': '6a2288c1811e41e2b4d06170c5330136'}}
2024-08-29 18:07:11,437 - INFO - Created VN ctest-vn-00457729
2024-08-29 18:07:11,492 - DEBUG - VN ctest-vn-00457729 UUID is 10764eb0-92d0-4f2d-bc6e-a01920c91087
2024-08-29 18:07:11,632 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-15379491:ctest-vn-09642938, 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-15379491:ctest-vn-00457729, 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-08-29 18:07:11,967 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8719bb07-ac10-48a8-b4e1-6bc5c3eaa2b8', 'name': 'ctest-vn-09642938', 'tenant_id': '6a2288c1811e41e2b4d06170c5330136', 'project_id': '6a2288c1811e41e2b4d06170c5330136', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c37538c4-aecd-4846-9bbd-f50508927711'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15379491', 'ctest-vn-09642938'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15379491', 'ctest-policy-allow-all-10299912']], 'subnet_ipam': [{'subnet_cidr': '49.229.6.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-29 18:07:12,237 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '10764eb0-92d0-4f2d-bc6e-a01920c91087', 'name': 'ctest-vn-00457729', 'tenant_id': '6a2288c1811e41e2b4d06170c5330136', 'project_id': '6a2288c1811e41e2b4d06170c5330136', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8a3cb5d0-ed47-41b4-bd49-880a1deb0c86'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15379491', 'ctest-vn-00457729'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15379491', 'ctest-policy-allow-all-10299912']], 'subnet_ipam': [{'subnet_cidr': '16.6.49.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-29 18:07:12,401 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-08-29 18:07:12,719 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-08-29 18:07:12,757 - DEBUG - Requesting: http://10.0.0.24:8082/domain/f1c5d620-9fca-4793-8e9c-cd3299091a3b
2024-08-29 18:07:12,772 - DEBUG - Requesting: http://10.0.0.24:8082/project/6a2288c1-811e-41e2-b4d0-6170c5330136
2024-08-29 18:07:12,851 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/8719bb07-ac10-48a8-b4e1-6bc5c3eaa2b8
2024-08-29 18:07:12,862 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/8719bb07-ac10-48a8-b4e1-6bc5c3eaa2b8
2024-08-29 18:07:12,871 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/f5f6c6c2-ca62-48c3-b270-b1a8fda72376
2024-08-29 18:07:12,879 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/f5f6c6c2-ca62-48c3-b270-b1a8fda72376
2024-08-29 18:07:12,887 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/c64bb63a-ff76-4a3c-ac51-d912bdf3451a
2024-08-29 18:07:12,895 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-29 18:07:12,895 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/8719bb07-ac10-48a8-b4e1-6bc5c3eaa2b8
2024-08-29 18:07:12,904 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/f5f6c6c2-ca62-48c3-b270-b1a8fda72376
2024-08-29 18:07:12,919 - INFO - Verified VN network id 8 for VN 8719bb07-ac10-48a8-b4e1-6bc5c3eaa2b8
2024-08-29 18:07:12,919 - INFO - Verifications in API Server for VN ctest-vn-09642938 passed
2024-08-29 18:07:12,919 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/8719bb07-ac10-48a8-b4e1-6bc5c3eaa2b8
2024-08-29 18:07:12,929 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/f5f6c6c2-ca62-48c3-b270-b1a8fda72376
2024-08-29 18:07:12,938 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/f5f6c6c2-ca62-48c3-b270-b1a8fda72376
2024-08-29 18:07:12,947 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/c64bb63a-ff76-4a3c-ac51-d912bdf3451a
2024-08-29 18:07:12,962 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15379491:ctest-vn-09642938', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15379491', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9735017711163951272', 'uuid-lslong': '13033817293726589624'}, 'enable': 'true', 'created': '2024-08-29T18:07:10', 'last-modified': '2024-08-29T18:07:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.030576'}
2024-08-29 18:07:12,970 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-29 18:07:12,970 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09642938 passed
2024-08-29 18:07:12,971 - DEBUG - ====Verifying policy data for ctest-vn-09642938 in API_Server ======
2024-08-29 18:07:12,971 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-08-29 18:07:12,978 - DEBUG - Requesting: http://10.0.0.24:8082/domain/f1c5d620-9fca-4793-8e9c-cd3299091a3b
2024-08-29 18:07:12,995 - DEBUG - Requesting: http://10.0.0.24:8082/project/6a2288c1-811e-41e2-b4d0-6170c5330136
2024-08-29 18:07:13,072 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/8719bb07-ac10-48a8-b4e1-6bc5c3eaa2b8
2024-08-29 18:07:13,083 - DEBUG - ==>Verifying data for policy with id: 7d6858e2-095b-4dd9-80b3-1bec26e7b6d6, fqn: ['default-domain', 'ctest-TestBasicPolicy-15379491', 'ctest-policy-allow-all-10299912']
2024-08-29 18:07:13,083 - INFO - VN ctest-vn-09642938 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-29 18:07:13,083 - DEBUG - Verifying the vn in opserver
2024-08-29 18:07:13,083 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15379491:ctest-vn-09642938 virtual network link through opserver 10.0.0.24
2024-08-29 18:07:13,083 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2024-08-29 18:07:13,401 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2024-08-29 18:07:13,485 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15379491:ctest-vn-09642938', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15379491:ctest-vn-09642938?flat'}
2024-08-29 18:07:13,485 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15379491:ctest-vn-09642938 is found in opserver
2024-08-29 18:07:13,498 - DEBUG - Do not have enough data to verify VN in agent
2024-08-29 18:07:13,505 - DEBUG - VRF ids for VN ctest-vn-09642938: {}
2024-08-29 18:07:13,505 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-08-29 18:07:13,513 - DEBUG - Requesting: http://10.0.0.24:8082/domain/f1c5d620-9fca-4793-8e9c-cd3299091a3b
2024-08-29 18:07:13,531 - DEBUG - Requesting: http://10.0.0.24:8082/project/6a2288c1-811e-41e2-b4d0-6170c5330136
2024-08-29 18:07:13,610 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/10764eb0-92d0-4f2d-bc6e-a01920c91087
2024-08-29 18:07:13,623 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/10764eb0-92d0-4f2d-bc6e-a01920c91087
2024-08-29 18:07:13,633 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/0f7ab4c7-553a-48b9-92fc-68033e76fce2
2024-08-29 18:07:13,641 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/0f7ab4c7-553a-48b9-92fc-68033e76fce2
2024-08-29 18:07:13,649 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/de3e0bcf-3faa-4f18-b529-49e6f54a76d8
2024-08-29 18:07:13,656 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-29 18:07:13,656 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/10764eb0-92d0-4f2d-bc6e-a01920c91087
2024-08-29 18:07:13,667 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/0f7ab4c7-553a-48b9-92fc-68033e76fce2
2024-08-29 18:07:13,683 - INFO - Verified VN network id 9 for VN 10764eb0-92d0-4f2d-bc6e-a01920c91087
2024-08-29 18:07:13,683 - INFO - Verifications in API Server for VN ctest-vn-00457729 passed
2024-08-29 18:07:13,683 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/10764eb0-92d0-4f2d-bc6e-a01920c91087
2024-08-29 18:07:13,695 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/0f7ab4c7-553a-48b9-92fc-68033e76fce2
2024-08-29 18:07:13,704 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/0f7ab4c7-553a-48b9-92fc-68033e76fce2
2024-08-29 18:07:13,715 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/de3e0bcf-3faa-4f18-b529-49e6f54a76d8
2024-08-29 18:07:13,734 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15379491:ctest-vn-00457729', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15379491', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1186222072143040301', 'uuid-lslong': '13577965956353298567'}, 'enable': 'true', 'created': '2024-08-29T18:07:11', 'last-modified': '2024-08-29T18:07:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.528191'}
2024-08-29 18:07:13,743 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-29 18:07:13,743 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00457729 passed
2024-08-29 18:07:13,744 - DEBUG - ====Verifying policy data for ctest-vn-00457729 in API_Server ======
2024-08-29 18:07:13,744 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-08-29 18:07:13,756 - DEBUG - Requesting: http://10.0.0.24:8082/domain/f1c5d620-9fca-4793-8e9c-cd3299091a3b
2024-08-29 18:07:13,780 - DEBUG - Requesting: http://10.0.0.24:8082/project/6a2288c1-811e-41e2-b4d0-6170c5330136
2024-08-29 18:07:13,860 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/10764eb0-92d0-4f2d-bc6e-a01920c91087
2024-08-29 18:07:13,871 - DEBUG - ==>Verifying data for policy with id: 7d6858e2-095b-4dd9-80b3-1bec26e7b6d6, fqn: ['default-domain', 'ctest-TestBasicPolicy-15379491', 'ctest-policy-allow-all-10299912']
2024-08-29 18:07:13,871 - INFO - VN ctest-vn-00457729 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-29 18:07:13,871 - DEBUG - Verifying the vn in opserver
2024-08-29 18:07:13,871 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15379491:ctest-vn-00457729 virtual network link through opserver 10.0.0.24
2024-08-29 18:07:13,871 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2024-08-29 18:07:13,888 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15379491:ctest-vn-00457729', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15379491:ctest-vn-00457729?flat'}
2024-08-29 18:07:13,889 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15379491:ctest-vn-00457729 is found in opserver
2024-08-29 18:07:13,906 - DEBUG - Do not have enough data to verify VN in agent
2024-08-29 18:07:13,915 - DEBUG - VRF ids for VN ctest-vn-00457729: {}
2024-08-29 18:07:14,019 - DEBUG - Services list from nova: [