2024-11-11 01:51:24,786 - INFO - Domain Default found not creating
2024-11-11 01:51:24,950 - INFO - Project ctest-TestBasicPolicy-85679659 not found, creating it
2024-11-11 01:51:25,446 - INFO - Created Project:ctest-TestBasicPolicy-85679659, ID : 517b8fe8-8bbc-4f6c-bfa2-7e25f43c72fb
2024-11-11 01:51:26,949 - INFO - ================================================================================
2024-11-11 01:51:26,949 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-11 01:51:26,949 - 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-11-11 01:51:27,214 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.29': '0'}} with
2024-11-11 01:51:27,214 - INFO - Initial checks done. Running the testcase now
2024-11-11 01:51:27,214 - INFO -
2024-11-11 01:51:27,794 - DEBUG - Response for create_network : {'network': {'id': '6bc5ee73-48f9-49ab-9762-1ba53cf951f2', 'name': 'ctest-vn-92340428', 'tenant_id': '517b8fe88bbc4f6cbfa27e25f43c72fb', 'project_id': '517b8fe88bbc4f6cbfa27e25f43c72fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85679659', 'ctest-vn-92340428'], 'port_security_enabled': True, 'description': ''}}
2024-11-11 01:51:27,989 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a43fa4ef-94f9-4192-a04a-9fbd7b531c48', 'name': '', 'tenant_id': '517b8fe88bbc4f6cbfa27e25f43c72fb', 'network_id': '6bc5ee73-48f9-49ab-9762-1ba53cf951f2', 'ip_version': 4, 'cidr': '216.207.102.192/26', 'allocation_pools': [{'start': '216.207.102.194', 'end': '216.207.102.254'}], 'gateway_ip': '216.207.102.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '216.207.102.194', 'tags': [], 'project_id': '517b8fe88bbc4f6cbfa27e25f43c72fb'}}
2024-11-11 01:51:28,010 - INFO - Created VN ctest-vn-92340428
2024-11-11 01:51:28,076 - DEBUG - VN ctest-vn-92340428 UUID is 6bc5ee73-48f9-49ab-9762-1ba53cf951f2
2024-11-11 01:51:28,386 - DEBUG - Response for create_network : {'network': {'id': '612a1b52-98f5-4f53-bfec-dae12abdcc04', 'name': 'ctest-vn-11684928', 'tenant_id': '517b8fe88bbc4f6cbfa27e25f43c72fb', 'project_id': '517b8fe88bbc4f6cbfa27e25f43c72fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85679659', 'ctest-vn-11684928'], 'port_security_enabled': True, 'description': ''}}
2024-11-11 01:51:28,550 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a2a5448b-7ad2-4265-bb59-ee957659c464', 'name': '', 'tenant_id': '517b8fe88bbc4f6cbfa27e25f43c72fb', 'network_id': '612a1b52-98f5-4f53-bfec-dae12abdcc04', 'ip_version': 4, 'cidr': '198.24.51.0/26', 'allocation_pools': [{'start': '198.24.51.2', 'end': '198.24.51.62'}], 'gateway_ip': '198.24.51.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '198.24.51.2', 'tags': [], 'project_id': '517b8fe88bbc4f6cbfa27e25f43c72fb'}}
2024-11-11 01:51:28,567 - INFO - Created VN ctest-vn-11684928
2024-11-11 01:51:28,624 - DEBUG - VN ctest-vn-11684928 UUID is 612a1b52-98f5-4f53-bfec-dae12abdcc04
2024-11-11 01:51:28,747 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-85679659:ctest-vn-92340428, 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-85679659:ctest-vn-11684928, 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-11-11 01:51:29,045 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6bc5ee73-48f9-49ab-9762-1ba53cf951f2', 'name': 'ctest-vn-92340428', 'tenant_id': '517b8fe88bbc4f6cbfa27e25f43c72fb', 'project_id': '517b8fe88bbc4f6cbfa27e25f43c72fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a43fa4ef-94f9-4192-a04a-9fbd7b531c48'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85679659', 'ctest-vn-92340428'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85679659', 'ctest-policy-allow-all-59740528']], 'subnet_ipam': [{'subnet_cidr': '216.207.102.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-11 01:51:29,290 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '612a1b52-98f5-4f53-bfec-dae12abdcc04', 'name': 'ctest-vn-11684928', 'tenant_id': '517b8fe88bbc4f6cbfa27e25f43c72fb', 'project_id': '517b8fe88bbc4f6cbfa27e25f43c72fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a2a5448b-7ad2-4265-bb59-ee957659c464'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85679659', 'ctest-vn-11684928'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85679659', 'ctest-policy-allow-all-59740528']], 'subnet_ipam': [{'subnet_cidr': '198.24.51.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-11 01:51:29,548 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-11-11 01:51:29,855 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-11-11 01:51:29,904 - DEBUG - Requesting: http://10.0.0.29:8082/domain/217bd010-6ae2-4b28-bd44-61ff7d54f969
2024-11-11 01:51:29,998 - DEBUG - Requesting: http://10.0.0.29:8082/project/517b8fe8-8bbc-4f6c-bfa2-7e25f43c72fb
2024-11-11 01:51:30,143 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/6bc5ee73-48f9-49ab-9762-1ba53cf951f2
2024-11-11 01:51:30,170 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/6bc5ee73-48f9-49ab-9762-1ba53cf951f2
2024-11-11 01:51:30,190 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/3af05b5a-49ea-4b7b-8785-25ad534e18b8
2024-11-11 01:51:30,202 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/3af05b5a-49ea-4b7b-8785-25ad534e18b8
2024-11-11 01:51:30,220 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/c0158166-9fff-4668-a42d-a4ada4622e5a
2024-11-11 01:51:30,236 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-11 01:51:30,236 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/6bc5ee73-48f9-49ab-9762-1ba53cf951f2
2024-11-11 01:51:30,253 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/3af05b5a-49ea-4b7b-8785-25ad534e18b8
2024-11-11 01:51:30,279 - INFO - Verified VN network id 9 for VN 6bc5ee73-48f9-49ab-9762-1ba53cf951f2
2024-11-11 01:51:30,279 - INFO - Verifications in API Server for VN ctest-vn-92340428 passed
2024-11-11 01:51:30,279 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/6bc5ee73-48f9-49ab-9762-1ba53cf951f2
2024-11-11 01:51:30,298 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/3af05b5a-49ea-4b7b-8785-25ad534e18b8
2024-11-11 01:51:30,310 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/3af05b5a-49ea-4b7b-8785-25ad534e18b8
2024-11-11 01:51:30,321 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/c0158166-9fff-4668-a42d-a4ada4622e5a
2024-11-11 01:51:30,356 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85679659:ctest-vn-92340428', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85679659', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7765875311383234987', 'uuid-lslong': '10908311643951288818'}, 'enable': 'true', 'created': '2024-11-11T01:51:27', 'last-modified': '2024-11-11T01:51:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.333903'}
2024-11-11 01:51:30,363 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-11 01:51:30,363 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92340428 passed
2024-11-11 01:51:30,364 - DEBUG - ====Verifying policy data for ctest-vn-92340428 in API_Server ======
2024-11-11 01:51:30,364 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-11-11 01:51:30,387 - DEBUG - Requesting: http://10.0.0.29:8082/domain/217bd010-6ae2-4b28-bd44-61ff7d54f969
2024-11-11 01:51:30,406 - DEBUG - Requesting: http://10.0.0.29:8082/project/517b8fe8-8bbc-4f6c-bfa2-7e25f43c72fb
2024-11-11 01:51:30,498 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/6bc5ee73-48f9-49ab-9762-1ba53cf951f2
2024-11-11 01:51:30,513 - DEBUG - ==>Verifying data for policy with id: 8c8131d9-daca-4b7f-bd0c-a891c023d909, fqn: ['default-domain', 'ctest-TestBasicPolicy-85679659', 'ctest-policy-allow-all-59740528']
2024-11-11 01:51:30,513 - INFO - VN ctest-vn-92340428 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-11 01:51:30,515 - DEBUG - Verifying the vn in opserver
2024-11-11 01:51:30,515 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85679659:ctest-vn-92340428 virtual network link through opserver 10.0.0.29
2024-11-11 01:51:30,515 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-11-11 01:51:30,809 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-11-11 01:51:30,871 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85679659:ctest-vn-92340428', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85679659:ctest-vn-92340428?flat'}
2024-11-11 01:51:30,871 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85679659:ctest-vn-92340428 is found in opserver
2024-11-11 01:51:30,883 - DEBUG - Do not have enough data to verify VN in agent
2024-11-11 01:51:30,889 - DEBUG - VRF ids for VN ctest-vn-92340428: {}
2024-11-11 01:51:30,889 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-11-11 01:51:30,895 - DEBUG - Requesting: http://10.0.0.29:8082/domain/217bd010-6ae2-4b28-bd44-61ff7d54f969
2024-11-11 01:51:30,907 - DEBUG - Requesting: http://10.0.0.29:8082/project/517b8fe8-8bbc-4f6c-bfa2-7e25f43c72fb
2024-11-11 01:51:30,993 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/612a1b52-98f5-4f53-bfec-dae12abdcc04
2024-11-11 01:51:31,009 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/612a1b52-98f5-4f53-bfec-dae12abdcc04
2024-11-11 01:51:31,024 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/ad4edaec-f2c9-4e68-bc05-af94e886667a
2024-11-11 01:51:31,032 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/ad4edaec-f2c9-4e68-bc05-af94e886667a
2024-11-11 01:51:31,040 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/aea0816b-5521-4cf9-a68c-aa41953078ea
2024-11-11 01:51:31,047 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-11 01:51:31,047 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/612a1b52-98f5-4f53-bfec-dae12abdcc04
2024-11-11 01:51:31,059 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/ad4edaec-f2c9-4e68-bc05-af94e886667a
2024-11-11 01:51:31,079 - INFO - Verified VN network id 10 for VN 612a1b52-98f5-4f53-bfec-dae12abdcc04
2024-11-11 01:51:31,079 - INFO - Verifications in API Server for VN ctest-vn-11684928 passed
2024-11-11 01:51:31,079 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/612a1b52-98f5-4f53-bfec-dae12abdcc04
2024-11-11 01:51:31,093 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/ad4edaec-f2c9-4e68-bc05-af94e886667a
2024-11-11 01:51:31,101 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/ad4edaec-f2c9-4e68-bc05-af94e886667a
2024-11-11 01:51:31,108 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/aea0816b-5521-4cf9-a68c-aa41953078ea
2024-11-11 01:51:31,121 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85679659:ctest-vn-11684928', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85679659', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7001438612268339027', 'uuid-lslong': '13829669216367528964'}, 'enable': 'true', 'created': '2024-11-11T01:51:28', 'last-modified': '2024-11-11T01:51:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.856223'}
2024-11-11 01:51:31,127 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-11 01:51:31,127 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11684928 passed
2024-11-11 01:51:31,127 - DEBUG - ====Verifying policy data for ctest-vn-11684928 in API_Server ======
2024-11-11 01:51:31,127 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-11-11 01:51:31,134 - DEBUG - Requesting: http://10.0.0.29:8082/domain/217bd010-6ae2-4b28-bd44-61ff7d54f969
2024-11-11 01:51:31,151 - DEBUG - Requesting: http://10.0.0.29:8082/project/517b8fe8-8bbc-4f6c-bfa2-7e25f43c72fb
2024-11-11 01:51:31,230 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/612a1b52-98f5-4f53-bfec-dae12abdcc04
2024-11-11 01:51:31,243 - DEBUG - ==>Verifying data for policy with id: 8c8131d9-daca-4b7f-bd0c-a891c023d909, fqn: ['default-domain', 'ctest-TestBasicPolicy-85679659', 'ctest-policy-allow-all-59740528']
2024-11-11 01:51:31,243 - INFO - VN ctest-vn-11684928 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-11 01:51:31,243 - DEBUG - Verifying the vn in opserver
2024-11-11 01:51:31,243 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85679659:ctest-vn-11684928 virtual network link through opserver 10.0.0.29
2024-11-11 01:51:31,243 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-11-11 01:51:31,254 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85679659:ctest-vn-11684928', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85679659:ctest-vn-11684928?flat'}
2024-11-11 01:51:31,254 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85679659:ctest-vn-11684928 is found in opserver
2024-11-11 01:51:31,264 - DEBUG - Do not have enough data to verify VN in agent
2024-11-11 01:51:31,269 - DEBUG - VRF ids for VN ctest-vn-11684928: {}
2024-11-11 01:51:31,321 - DEBUG - Services list from nova: [