2024-10-28 12:03:56,411 - INFO - Domain Default found not creating
2024-10-28 12:03:56,645 - INFO - Project ctest-TestBasicPolicy-23219678 not found, creating it
2024-10-28 12:03:57,306 - INFO - Created Project:ctest-TestBasicPolicy-23219678, ID : c039d41b-e6fa-4f8e-a2c0-84408867af83
2024-10-28 12:03:59,111 - INFO - ================================================================================
2024-10-28 12:03:59,111 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-28 12:03:59,111 - 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 12:03:59,386 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.7': '0'}} with
2024-10-28 12:03:59,386 - INFO - Initial checks done. Running the testcase now
2024-10-28 12:03:59,386 - INFO -
2024-10-28 12:04:00,059 - DEBUG - Response for create_network : {'network': {'id': '695ade58-2b9c-42f4-aad8-c32484e25fcf', 'name': 'ctest-vn-15397334', 'tenant_id': 'c039d41be6fa4f8ea2c084408867af83', 'project_id': 'c039d41be6fa4f8ea2c084408867af83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23219678', 'ctest-vn-15397334'], 'port_security_enabled': True, 'description': ''}}
2024-10-28 12:04:00,349 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ae3a4d63-1b12-4729-80ba-0544819b2051', 'name': '', 'tenant_id': 'c039d41be6fa4f8ea2c084408867af83', 'network_id': '695ade58-2b9c-42f4-aad8-c32484e25fcf', 'ip_version': 4, 'cidr': '8.182.196.64/26', 'allocation_pools': [{'start': '8.182.196.66', 'end': '8.182.196.126'}], 'gateway_ip': '8.182.196.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.182.196.66', 'tags': [], 'project_id': 'c039d41be6fa4f8ea2c084408867af83'}}
2024-10-28 12:04:00,373 - INFO - Created VN ctest-vn-15397334
2024-10-28 12:04:00,437 - DEBUG - VN ctest-vn-15397334 UUID is 695ade58-2b9c-42f4-aad8-c32484e25fcf
2024-10-28 12:04:00,833 - DEBUG - Response for create_network : {'network': {'id': '6ac6d1a6-1d80-44e6-ab6c-dcd564ff3768', 'name': 'ctest-vn-95856115', 'tenant_id': 'c039d41be6fa4f8ea2c084408867af83', 'project_id': 'c039d41be6fa4f8ea2c084408867af83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23219678', 'ctest-vn-95856115'], 'port_security_enabled': True, 'description': ''}}
2024-10-28 12:04:01,107 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a282de01-b265-4826-a4a7-0642bb35822c', 'name': '', 'tenant_id': 'c039d41be6fa4f8ea2c084408867af83', 'network_id': '6ac6d1a6-1d80-44e6-ab6c-dcd564ff3768', 'ip_version': 4, 'cidr': '36.195.58.192/26', 'allocation_pools': [{'start': '36.195.58.194', 'end': '36.195.58.254'}], 'gateway_ip': '36.195.58.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36.195.58.194', 'tags': [], 'project_id': 'c039d41be6fa4f8ea2c084408867af83'}}
2024-10-28 12:04:01,136 - INFO - Created VN ctest-vn-95856115
2024-10-28 12:04:01,197 - DEBUG - VN ctest-vn-95856115 UUID is 6ac6d1a6-1d80-44e6-ab6c-dcd564ff3768
2024-10-28 12:04:01,351 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-23219678:ctest-vn-15397334, 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-23219678:ctest-vn-95856115, 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 12:04:01,751 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '695ade58-2b9c-42f4-aad8-c32484e25fcf', 'name': 'ctest-vn-15397334', 'tenant_id': 'c039d41be6fa4f8ea2c084408867af83', 'project_id': 'c039d41be6fa4f8ea2c084408867af83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ae3a4d63-1b12-4729-80ba-0544819b2051'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23219678', 'ctest-vn-15397334'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23219678', 'ctest-policy-allow-all-44565193']], 'subnet_ipam': [{'subnet_cidr': '8.182.196.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-28 12:04:02,031 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6ac6d1a6-1d80-44e6-ab6c-dcd564ff3768', 'name': 'ctest-vn-95856115', 'tenant_id': 'c039d41be6fa4f8ea2c084408867af83', 'project_id': 'c039d41be6fa4f8ea2c084408867af83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a282de01-b265-4826-a4a7-0642bb35822c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23219678', 'ctest-vn-95856115'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23219678', 'ctest-policy-allow-all-44565193']], 'subnet_ipam': [{'subnet_cidr': '36.195.58.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-28 12:04:02,229 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-10-28 12:04:02,544 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-10-28 12:04:02,586 - DEBUG - Requesting: http://10.0.0.27:8082/domain/b243edd3-0deb-49a8-815e-c05bb04ae919
2024-10-28 12:04:02,606 - DEBUG - Requesting: http://10.0.0.27:8082/project/c039d41b-e6fa-4f8e-a2c0-84408867af83
2024-10-28 12:04:02,710 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/695ade58-2b9c-42f4-aad8-c32484e25fcf
2024-10-28 12:04:02,729 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/695ade58-2b9c-42f4-aad8-c32484e25fcf
2024-10-28 12:04:02,745 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/87a43f2c-34de-4a8c-b5d0-7a2407effeff
2024-10-28 12:04:02,759 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/87a43f2c-34de-4a8c-b5d0-7a2407effeff
2024-10-28 12:04:02,773 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/647ab826-5365-4352-9595-3b2a2ae60cc0
2024-10-28 12:04:02,784 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-28 12:04:02,784 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/695ade58-2b9c-42f4-aad8-c32484e25fcf
2024-10-28 12:04:02,800 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/87a43f2c-34de-4a8c-b5d0-7a2407effeff
2024-10-28 12:04:02,832 - INFO - Verified VN network id 7 for VN 695ade58-2b9c-42f4-aad8-c32484e25fcf
2024-10-28 12:04:02,832 - INFO - Verifications in API Server for VN ctest-vn-15397334 passed
2024-10-28 12:04:02,832 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/695ade58-2b9c-42f4-aad8-c32484e25fcf
2024-10-28 12:04:02,855 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/87a43f2c-34de-4a8c-b5d0-7a2407effeff
2024-10-28 12:04:02,880 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/87a43f2c-34de-4a8c-b5d0-7a2407effeff
2024-10-28 12:04:02,900 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/647ab826-5365-4352-9595-3b2a2ae60cc0
2024-10-28 12:04:02,921 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23219678:ctest-vn-15397334', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23219678', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7591624592156541684', 'uuid-lslong': '12310804143032917967'}, 'enable': 'true', 'created': '2024-10-28T12:04:00', 'last-modified': '2024-10-28T12:04:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.194881'}
2024-10-28 12:04:02,931 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-28 12:04:02,931 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15397334 passed
2024-10-28 12:04:02,931 - DEBUG - ====Verifying policy data for ctest-vn-15397334 in API_Server ======
2024-10-28 12:04:02,931 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-10-28 12:04:02,941 - DEBUG - Requesting: http://10.0.0.27:8082/domain/b243edd3-0deb-49a8-815e-c05bb04ae919
2024-10-28 12:04:02,968 - DEBUG - Requesting: http://10.0.0.27:8082/project/c039d41b-e6fa-4f8e-a2c0-84408867af83
2024-10-28 12:04:03,097 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/695ade58-2b9c-42f4-aad8-c32484e25fcf
2024-10-28 12:04:03,118 - DEBUG - ==>Verifying data for policy with id: 1e91e6d8-58bb-48c4-90b1-2ce31c821832, fqn: ['default-domain', 'ctest-TestBasicPolicy-23219678', 'ctest-policy-allow-all-44565193']
2024-10-28 12:04:03,118 - INFO - VN ctest-vn-15397334 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-28 12:04:03,118 - DEBUG - Verifying the vn in opserver
2024-10-28 12:04:03,119 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23219678:ctest-vn-15397334 virtual network link through opserver 10.0.0.27
2024-10-28 12:04:03,119 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2024-10-28 12:04:03,432 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2024-10-28 12:04:03,534 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23219678:ctest-vn-15397334', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23219678:ctest-vn-15397334?flat'}
2024-10-28 12:04:03,534 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23219678:ctest-vn-15397334 is found in opserver
2024-10-28 12:04:03,549 - DEBUG - Do not have enough data to verify VN in agent
2024-10-28 12:04:03,556 - DEBUG - VRF ids for VN ctest-vn-15397334: {}
2024-10-28 12:04:03,556 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-10-28 12:04:03,563 - DEBUG - Requesting: http://10.0.0.27:8082/domain/b243edd3-0deb-49a8-815e-c05bb04ae919
2024-10-28 12:04:03,580 - DEBUG - Requesting: http://10.0.0.27:8082/project/c039d41b-e6fa-4f8e-a2c0-84408867af83
2024-10-28 12:04:03,683 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6ac6d1a6-1d80-44e6-ab6c-dcd564ff3768
2024-10-28 12:04:03,706 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6ac6d1a6-1d80-44e6-ab6c-dcd564ff3768
2024-10-28 12:04:03,727 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/84c7ba44-6594-40d8-a627-46095e21de38
2024-10-28 12:04:03,737 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/84c7ba44-6594-40d8-a627-46095e21de38
2024-10-28 12:04:03,748 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/37c3e7e4-1244-4851-ba34-92c0a5021e63
2024-10-28 12:04:03,764 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-28 12:04:03,764 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6ac6d1a6-1d80-44e6-ab6c-dcd564ff3768
2024-10-28 12:04:03,782 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/84c7ba44-6594-40d8-a627-46095e21de38
2024-10-28 12:04:03,815 - INFO - Verified VN network id 8 for VN 6ac6d1a6-1d80-44e6-ab6c-dcd564ff3768
2024-10-28 12:04:03,815 - INFO - Verifications in API Server for VN ctest-vn-95856115 passed
2024-10-28 12:04:03,815 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6ac6d1a6-1d80-44e6-ab6c-dcd564ff3768
2024-10-28 12:04:03,832 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/84c7ba44-6594-40d8-a627-46095e21de38
2024-10-28 12:04:03,842 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/84c7ba44-6594-40d8-a627-46095e21de38
2024-10-28 12:04:03,852 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/37c3e7e4-1244-4851-ba34-92c0a5021e63
2024-10-28 12:04:03,870 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23219678:ctest-vn-95856115', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23219678', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7694067524798792934', 'uuid-lslong': '12352490687051020136'}, 'enable': 'true', 'created': '2024-10-28T12:04:00', 'last-modified': '2024-10-28T12:04:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.879546'}
2024-10-28 12:04:03,881 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-28 12:04:03,882 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95856115 passed
2024-10-28 12:04:03,882 - DEBUG - ====Verifying policy data for ctest-vn-95856115 in API_Server ======
2024-10-28 12:04:03,882 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-10-28 12:04:03,893 - DEBUG - Requesting: http://10.0.0.27:8082/domain/b243edd3-0deb-49a8-815e-c05bb04ae919
2024-10-28 12:04:03,912 - DEBUG - Requesting: http://10.0.0.27:8082/project/c039d41b-e6fa-4f8e-a2c0-84408867af83
2024-10-28 12:04:04,011 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6ac6d1a6-1d80-44e6-ab6c-dcd564ff3768
2024-10-28 12:04:04,031 - DEBUG - ==>Verifying data for policy with id: 1e91e6d8-58bb-48c4-90b1-2ce31c821832, fqn: ['default-domain', 'ctest-TestBasicPolicy-23219678', 'ctest-policy-allow-all-44565193']
2024-10-28 12:04:04,031 - INFO - VN ctest-vn-95856115 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-28 12:04:04,031 - DEBUG - Verifying the vn in opserver
2024-10-28 12:04:04,031 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23219678:ctest-vn-95856115 virtual network link through opserver 10.0.0.27
2024-10-28 12:04:04,031 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2024-10-28 12:04:04,047 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23219678:ctest-vn-95856115', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23219678:ctest-vn-95856115?flat'}
2024-10-28 12:04:04,047 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23219678:ctest-vn-95856115 is found in opserver
2024-10-28 12:04:04,061 - DEBUG - Do not have enough data to verify VN in agent
2024-10-28 12:04:04,069 - DEBUG - VRF ids for VN ctest-vn-95856115: {}
2024-10-28 12:04:04,144 - DEBUG - Services list from nova: [