2024-10-29 11:59:39,883 - INFO - Domain Default found not creating
2024-10-29 11:59:40,089 - INFO - Project ctest-TestBasicPolicy-08346735 not found, creating it
2024-10-29 11:59:40,637 - INFO - Created Project:ctest-TestBasicPolicy-08346735, ID : 0dc19e6c-7bac-422a-adcc-96347f192ee8
2024-10-29 11:59:42,791 - INFO - ================================================================================
2024-10-29 11:59:42,791 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-29 11:59:42,791 - 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-29 11:59:43,066 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.20': '0'}} with
2024-10-29 11:59:43,066 - INFO - Initial checks done. Running the testcase now
2024-10-29 11:59:43,066 - INFO -
2024-10-29 11:59:43,852 - DEBUG - Response for create_network : {'network': {'id': 'ae651a10-e4ff-4c70-9fe2-923b47d89197', 'name': 'ctest-vn-49106209', 'tenant_id': '0dc19e6c7bac422aadcc96347f192ee8', 'project_id': '0dc19e6c7bac422aadcc96347f192ee8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08346735', 'ctest-vn-49106209'], 'port_security_enabled': True, 'description': ''}}
2024-10-29 11:59:44,056 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e5f68808-7f74-4ab4-b9a3-20b9906a4759', 'name': '', 'tenant_id': '0dc19e6c7bac422aadcc96347f192ee8', 'network_id': 'ae651a10-e4ff-4c70-9fe2-923b47d89197', 'ip_version': 4, 'cidr': '112.209.181.192/26', 'allocation_pools': [{'start': '112.209.181.194', 'end': '112.209.181.254'}], 'gateway_ip': '112.209.181.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '112.209.181.194', 'tags': [], 'project_id': '0dc19e6c7bac422aadcc96347f192ee8'}}
2024-10-29 11:59:44,081 - INFO - Created VN ctest-vn-49106209
2024-10-29 11:59:44,144 - DEBUG - VN ctest-vn-49106209 UUID is ae651a10-e4ff-4c70-9fe2-923b47d89197
2024-10-29 11:59:44,560 - DEBUG - Response for create_network : {'network': {'id': '83d722d6-245c-4da1-b136-c9c46168d3e4', 'name': 'ctest-vn-80531800', 'tenant_id': '0dc19e6c7bac422aadcc96347f192ee8', 'project_id': '0dc19e6c7bac422aadcc96347f192ee8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08346735', 'ctest-vn-80531800'], 'port_security_enabled': True, 'description': ''}}
2024-10-29 11:59:44,766 - DEBUG - Response for create_subnet : {'subnet': {'id': '4f75183b-63ce-4f0c-b6cf-28fb60daf0ff', 'name': '', 'tenant_id': '0dc19e6c7bac422aadcc96347f192ee8', 'network_id': '83d722d6-245c-4da1-b136-c9c46168d3e4', 'ip_version': 4, 'cidr': '117.179.220.0/26', 'allocation_pools': [{'start': '117.179.220.2', 'end': '117.179.220.62'}], 'gateway_ip': '117.179.220.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '117.179.220.2', 'tags': [], 'project_id': '0dc19e6c7bac422aadcc96347f192ee8'}}
2024-10-29 11:59:44,791 - INFO - Created VN ctest-vn-80531800
2024-10-29 11:59:44,852 - DEBUG - VN ctest-vn-80531800 UUID is 83d722d6-245c-4da1-b136-c9c46168d3e4
2024-10-29 11:59:44,995 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-08346735:ctest-vn-49106209, 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-08346735:ctest-vn-80531800, 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-29 11:59:45,342 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ae651a10-e4ff-4c70-9fe2-923b47d89197', 'name': 'ctest-vn-49106209', 'tenant_id': '0dc19e6c7bac422aadcc96347f192ee8', 'project_id': '0dc19e6c7bac422aadcc96347f192ee8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e5f68808-7f74-4ab4-b9a3-20b9906a4759'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08346735', 'ctest-vn-49106209'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08346735', 'ctest-policy-allow-all-72409012']], 'subnet_ipam': [{'subnet_cidr': '112.209.181.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-29 11:59:45,608 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '83d722d6-245c-4da1-b136-c9c46168d3e4', 'name': 'ctest-vn-80531800', 'tenant_id': '0dc19e6c7bac422aadcc96347f192ee8', 'project_id': '0dc19e6c7bac422aadcc96347f192ee8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4f75183b-63ce-4f0c-b6cf-28fb60daf0ff'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08346735', 'ctest-vn-80531800'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08346735', 'ctest-policy-allow-all-72409012']], 'subnet_ipam': [{'subnet_cidr': '117.179.220.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-29 11:59:45,804 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-10-29 11:59:46,149 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-10-29 11:59:46,192 - DEBUG - Requesting: http://10.0.0.22:8082/domain/15a8fd70-660d-4e3d-85a3-b5a45990d910
2024-10-29 11:59:46,211 - DEBUG - Requesting: http://10.0.0.22:8082/project/0dc19e6c-7bac-422a-adcc-96347f192ee8
2024-10-29 11:59:46,306 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ae651a10-e4ff-4c70-9fe2-923b47d89197
2024-10-29 11:59:46,326 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ae651a10-e4ff-4c70-9fe2-923b47d89197
2024-10-29 11:59:46,343 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d348693e-c2af-4ceb-9461-53da907d12ce
2024-10-29 11:59:46,356 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d348693e-c2af-4ceb-9461-53da907d12ce
2024-10-29 11:59:46,369 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/04b07f4b-a2dc-4e7c-8429-94c65556202a
2024-10-29 11:59:46,379 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-29 11:59:46,379 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ae651a10-e4ff-4c70-9fe2-923b47d89197
2024-10-29 11:59:46,397 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d348693e-c2af-4ceb-9461-53da907d12ce
2024-10-29 11:59:46,422 - INFO - Verified VN network id 9 for VN ae651a10-e4ff-4c70-9fe2-923b47d89197
2024-10-29 11:59:46,422 - INFO - Verifications in API Server for VN ctest-vn-49106209 passed
2024-10-29 11:59:46,422 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ae651a10-e4ff-4c70-9fe2-923b47d89197
2024-10-29 11:59:46,439 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d348693e-c2af-4ceb-9461-53da907d12ce
2024-10-29 11:59:46,450 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d348693e-c2af-4ceb-9461-53da907d12ce
2024-10-29 11:59:46,461 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/04b07f4b-a2dc-4e7c-8429-94c65556202a
2024-10-29 11:59:46,479 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08346735:ctest-vn-49106209', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08346735', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12566478995110972528', 'uuid-lslong': '11520931580073251223'}, 'enable': 'true', 'created': '2024-10-29T11:59:43', 'last-modified': '2024-10-29T11:59:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.174766'}
2024-10-29 11:59:46,487 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-29 11:59:46,488 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49106209 passed
2024-10-29 11:59:46,488 - DEBUG - ====Verifying policy data for ctest-vn-49106209 in API_Server ======
2024-10-29 11:59:46,488 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-10-29 11:59:46,495 - DEBUG - Requesting: http://10.0.0.22:8082/domain/15a8fd70-660d-4e3d-85a3-b5a45990d910
2024-10-29 11:59:46,512 - DEBUG - Requesting: http://10.0.0.22:8082/project/0dc19e6c-7bac-422a-adcc-96347f192ee8
2024-10-29 11:59:46,604 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ae651a10-e4ff-4c70-9fe2-923b47d89197
2024-10-29 11:59:46,621 - DEBUG - ==>Verifying data for policy with id: 19379691-d71d-4855-9d22-d7ab8414cb5a, fqn: ['default-domain', 'ctest-TestBasicPolicy-08346735', 'ctest-policy-allow-all-72409012']
2024-10-29 11:59:46,621 - INFO - VN ctest-vn-49106209 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-29 11:59:46,621 - DEBUG - Verifying the vn in opserver
2024-10-29 11:59:46,621 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08346735:ctest-vn-49106209 virtual network link through opserver 10.0.0.22
2024-10-29 11:59:46,621 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2024-10-29 11:59:46,963 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2024-10-29 11:59:47,047 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08346735:ctest-vn-49106209', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08346735:ctest-vn-49106209?flat'}
2024-10-29 11:59:47,047 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08346735:ctest-vn-49106209 is found in opserver
2024-10-29 11:59:47,060 - DEBUG - Do not have enough data to verify VN in agent
2024-10-29 11:59:47,067 - DEBUG - VRF ids for VN ctest-vn-49106209: {}
2024-10-29 11:59:47,067 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-10-29 11:59:47,074 - DEBUG - Requesting: http://10.0.0.22:8082/domain/15a8fd70-660d-4e3d-85a3-b5a45990d910
2024-10-29 11:59:47,090 - DEBUG - Requesting: http://10.0.0.22:8082/project/0dc19e6c-7bac-422a-adcc-96347f192ee8
2024-10-29 11:59:47,185 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/83d722d6-245c-4da1-b136-c9c46168d3e4
2024-10-29 11:59:47,207 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/83d722d6-245c-4da1-b136-c9c46168d3e4
2024-10-29 11:59:47,224 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/31b1b7e8-ec26-487f-ab59-45a99947db2b
2024-10-29 11:59:47,236 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/31b1b7e8-ec26-487f-ab59-45a99947db2b
2024-10-29 11:59:47,247 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/adfdcf65-6dad-486c-9f92-52faa00827b6
2024-10-29 11:59:47,256 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-29 11:59:47,256 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/83d722d6-245c-4da1-b136-c9c46168d3e4
2024-10-29 11:59:47,271 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/31b1b7e8-ec26-487f-ab59-45a99947db2b
2024-10-29 11:59:47,297 - INFO - Verified VN network id 10 for VN 83d722d6-245c-4da1-b136-c9c46168d3e4
2024-10-29 11:59:47,297 - INFO - Verifications in API Server for VN ctest-vn-80531800 passed
2024-10-29 11:59:47,297 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/83d722d6-245c-4da1-b136-c9c46168d3e4
2024-10-29 11:59:47,314 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/31b1b7e8-ec26-487f-ab59-45a99947db2b
2024-10-29 11:59:47,326 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/31b1b7e8-ec26-487f-ab59-45a99947db2b
2024-10-29 11:59:47,338 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/adfdcf65-6dad-486c-9f92-52faa00827b6
2024-10-29 11:59:47,354 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08346735:ctest-vn-80531800', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08346735', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9500100242089725345', 'uuid-lslong': '12769615638740653028'}, 'enable': 'true', 'created': '2024-10-29T11:59:44', 'last-modified': '2024-10-29T11:59:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.782005'}
2024-10-29 11:59:47,362 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-29 11:59:47,362 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80531800 passed
2024-10-29 11:59:47,363 - DEBUG - ====Verifying policy data for ctest-vn-80531800 in API_Server ======
2024-10-29 11:59:47,363 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-10-29 11:59:47,370 - DEBUG - Requesting: http://10.0.0.22:8082/domain/15a8fd70-660d-4e3d-85a3-b5a45990d910
2024-10-29 11:59:47,387 - DEBUG - Requesting: http://10.0.0.22:8082/project/0dc19e6c-7bac-422a-adcc-96347f192ee8
2024-10-29 11:59:47,478 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/83d722d6-245c-4da1-b136-c9c46168d3e4
2024-10-29 11:59:47,500 - DEBUG - ==>Verifying data for policy with id: 19379691-d71d-4855-9d22-d7ab8414cb5a, fqn: ['default-domain', 'ctest-TestBasicPolicy-08346735', 'ctest-policy-allow-all-72409012']
2024-10-29 11:59:47,500 - INFO - VN ctest-vn-80531800 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-29 11:59:47,500 - DEBUG - Verifying the vn in opserver
2024-10-29 11:59:47,500 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08346735:ctest-vn-80531800 virtual network link through opserver 10.0.0.22
2024-10-29 11:59:47,500 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2024-10-29 11:59:47,515 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08346735:ctest-vn-80531800', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08346735:ctest-vn-80531800?flat'}
2024-10-29 11:59:47,515 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08346735:ctest-vn-80531800 is found in opserver
2024-10-29 11:59:47,529 - DEBUG - Do not have enough data to verify VN in agent
2024-10-29 11:59:47,536 - DEBUG - VRF ids for VN ctest-vn-80531800: {}
2024-10-29 11:59:47,606 - DEBUG - Services list from nova: [