2024-09-10 11:28:03,959 - INFO - Domain Default found not creating
2024-09-10 11:28:04,152 - INFO - Project ctest-TestBasicPolicy-71545038 not found, creating it
2024-09-10 11:28:04,652 - INFO - Created Project:ctest-TestBasicPolicy-71545038, ID : 0952aa39-e8f2-40ed-9867-b2cee5867a37
2024-09-10 11:28:06,244 - INFO - ================================================================================
2024-09-10 11:28:06,244 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-10 11:28:06,244 - 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-09-10 11:28:06,500 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.20.0.8': '0'}} with
2024-09-10 11:28:06,500 - INFO - Initial checks done. Running the testcase now
2024-09-10 11:28:06,500 - INFO -
2024-09-10 11:28:07,070 - DEBUG - Response for create_network : {'network': {'id': '8daba009-11b1-40ba-937c-dd1e83f637bb', 'name': 'ctest-vn-94554119', 'tenant_id': '0952aa39e8f240ed9867b2cee5867a37', 'project_id': '0952aa39e8f240ed9867b2cee5867a37', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71545038', 'ctest-vn-94554119'], 'port_security_enabled': True, 'description': ''}}
2024-09-10 11:28:07,251 - DEBUG - Response for create_subnet : {'subnet': {'id': '7f20f037-a964-4e87-87a5-d490eefef077', 'name': '', 'tenant_id': '0952aa39e8f240ed9867b2cee5867a37', 'network_id': '8daba009-11b1-40ba-937c-dd1e83f637bb', 'ip_version': 4, 'cidr': '3.216.114.192/26', 'allocation_pools': [{'start': '3.216.114.194', 'end': '3.216.114.254'}], 'gateway_ip': '3.216.114.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3.216.114.194', 'tags': [], 'project_id': '0952aa39e8f240ed9867b2cee5867a37'}}
2024-09-10 11:28:07,280 - INFO - Created VN ctest-vn-94554119
2024-09-10 11:28:07,333 - DEBUG - VN ctest-vn-94554119 UUID is 8daba009-11b1-40ba-937c-dd1e83f637bb
2024-09-10 11:28:07,675 - DEBUG - Response for create_network : {'network': {'id': 'e1cef9c1-f29e-4417-adbb-f6b7c59dce62', 'name': 'ctest-vn-96942248', 'tenant_id': '0952aa39e8f240ed9867b2cee5867a37', 'project_id': '0952aa39e8f240ed9867b2cee5867a37', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71545038', 'ctest-vn-96942248'], 'port_security_enabled': True, 'description': ''}}
2024-09-10 11:28:07,888 - DEBUG - Response for create_subnet : {'subnet': {'id': '05c41695-e80f-4315-a358-3d35936b5cdf', 'name': '', 'tenant_id': '0952aa39e8f240ed9867b2cee5867a37', 'network_id': 'e1cef9c1-f29e-4417-adbb-f6b7c59dce62', 'ip_version': 4, 'cidr': '171.114.247.64/26', 'allocation_pools': [{'start': '171.114.247.66', 'end': '171.114.247.126'}], 'gateway_ip': '171.114.247.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.114.247.66', 'tags': [], 'project_id': '0952aa39e8f240ed9867b2cee5867a37'}}
2024-09-10 11:28:07,918 - INFO - Created VN ctest-vn-96942248
2024-09-10 11:28:07,972 - DEBUG - VN ctest-vn-96942248 UUID is e1cef9c1-f29e-4417-adbb-f6b7c59dce62
2024-09-10 11:28:08,106 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-71545038:ctest-vn-94554119, 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-71545038:ctest-vn-96942248, 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-09-10 11:28:08,420 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8daba009-11b1-40ba-937c-dd1e83f637bb', 'name': 'ctest-vn-94554119', 'tenant_id': '0952aa39e8f240ed9867b2cee5867a37', 'project_id': '0952aa39e8f240ed9867b2cee5867a37', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7f20f037-a964-4e87-87a5-d490eefef077'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71545038', 'ctest-vn-94554119'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71545038', 'ctest-policy-allow-all-43652489']], 'subnet_ipam': [{'subnet_cidr': '3.216.114.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-10 11:28:08,681 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e1cef9c1-f29e-4417-adbb-f6b7c59dce62', 'name': 'ctest-vn-96942248', 'tenant_id': '0952aa39e8f240ed9867b2cee5867a37', 'project_id': '0952aa39e8f240ed9867b2cee5867a37', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['05c41695-e80f-4315-a358-3d35936b5cdf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71545038', 'ctest-vn-96942248'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71545038', 'ctest-policy-allow-all-43652489']], 'subnet_ipam': [{'subnet_cidr': '171.114.247.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-10 11:28:08,861 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-09-10 11:28:09,169 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-09-10 11:28:09,214 - DEBUG - Requesting: http://10.0.0.30:8082/domain/811f6376-797c-47c5-ae2b-a11059a65dff
2024-09-10 11:28:09,232 - DEBUG - Requesting: http://10.0.0.30:8082/project/0952aa39-e8f2-40ed-9867-b2cee5867a37
2024-09-10 11:28:09,317 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/8daba009-11b1-40ba-937c-dd1e83f637bb
2024-09-10 11:28:09,329 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/8daba009-11b1-40ba-937c-dd1e83f637bb
2024-09-10 11:28:09,340 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/7a19d2d4-2fc1-4092-8883-018d1443560e
2024-09-10 11:28:09,351 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/7a19d2d4-2fc1-4092-8883-018d1443560e
2024-09-10 11:28:09,362 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/2788249b-7244-417d-90b5-c3d389c8cd27
2024-09-10 11:28:09,371 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-10 11:28:09,371 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/8daba009-11b1-40ba-937c-dd1e83f637bb
2024-09-10 11:28:09,384 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/7a19d2d4-2fc1-4092-8883-018d1443560e
2024-09-10 11:28:09,399 - INFO - Verified VN network id 8 for VN 8daba009-11b1-40ba-937c-dd1e83f637bb
2024-09-10 11:28:09,399 - INFO - Verifications in API Server for VN ctest-vn-94554119 passed
2024-09-10 11:28:09,399 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/8daba009-11b1-40ba-937c-dd1e83f637bb
2024-09-10 11:28:09,412 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/7a19d2d4-2fc1-4092-8883-018d1443560e
2024-09-10 11:28:09,429 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/7a19d2d4-2fc1-4092-8883-018d1443560e
2024-09-10 11:28:09,440 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/2788249b-7244-417d-90b5-c3d389c8cd27
2024-09-10 11:28:09,460 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71545038:ctest-vn-94554119', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71545038', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10208428941177340090', 'uuid-lslong': '10627612343820236731'}, 'enable': 'true', 'created': '2024-09-10T11:28:07', 'last-modified': '2024-09-10T11:28:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.064668'}
2024-09-10 11:28:09,469 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-10 11:28:09,469 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94554119 passed
2024-09-10 11:28:09,470 - DEBUG - ====Verifying policy data for ctest-vn-94554119 in API_Server ======
2024-09-10 11:28:09,470 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-09-10 11:28:09,479 - DEBUG - Requesting: http://10.0.0.30:8082/domain/811f6376-797c-47c5-ae2b-a11059a65dff
2024-09-10 11:28:09,497 - DEBUG - Requesting: http://10.0.0.30:8082/project/0952aa39-e8f2-40ed-9867-b2cee5867a37
2024-09-10 11:28:09,635 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/8daba009-11b1-40ba-937c-dd1e83f637bb
2024-09-10 11:28:09,653 - DEBUG - ==>Verifying data for policy with id: bff042d0-dafb-491f-9d77-a6da84493562, fqn: ['default-domain', 'ctest-TestBasicPolicy-71545038', 'ctest-policy-allow-all-43652489']
2024-09-10 11:28:09,653 - INFO - VN ctest-vn-94554119 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-10 11:28:09,653 - DEBUG - Verifying the vn in opserver
2024-09-10 11:28:09,654 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71545038:ctest-vn-94554119 virtual network link through opserver 10.0.0.30
2024-09-10 11:28:09,654 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2024-09-10 11:28:10,229 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2024-09-10 11:28:10,352 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71545038:ctest-vn-94554119', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71545038:ctest-vn-94554119?flat'}
2024-09-10 11:28:10,352 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71545038:ctest-vn-94554119 is found in opserver
2024-09-10 11:28:10,366 - DEBUG - Do not have enough data to verify VN in agent
2024-09-10 11:28:10,372 - DEBUG - VRF ids for VN ctest-vn-94554119: {}
2024-09-10 11:28:10,372 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-09-10 11:28:10,380 - DEBUG - Requesting: http://10.0.0.30:8082/domain/811f6376-797c-47c5-ae2b-a11059a65dff
2024-09-10 11:28:10,397 - DEBUG - Requesting: http://10.0.0.30:8082/project/0952aa39-e8f2-40ed-9867-b2cee5867a37
2024-09-10 11:28:10,474 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/e1cef9c1-f29e-4417-adbb-f6b7c59dce62
2024-09-10 11:28:10,488 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/e1cef9c1-f29e-4417-adbb-f6b7c59dce62
2024-09-10 11:28:10,499 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/3da97799-9eb0-49a0-8c2c-19e62dc67d97
2024-09-10 11:28:10,509 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/3da97799-9eb0-49a0-8c2c-19e62dc67d97
2024-09-10 11:28:10,519 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/e905ef56-5ae9-42c1-a3ec-b0d93b7b6155
2024-09-10 11:28:10,529 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-10 11:28:10,529 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/e1cef9c1-f29e-4417-adbb-f6b7c59dce62
2024-09-10 11:28:10,541 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/3da97799-9eb0-49a0-8c2c-19e62dc67d97
2024-09-10 11:28:10,559 - INFO - Verified VN network id 9 for VN e1cef9c1-f29e-4417-adbb-f6b7c59dce62
2024-09-10 11:28:10,559 - INFO - Verifications in API Server for VN ctest-vn-96942248 passed
2024-09-10 11:28:10,559 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/e1cef9c1-f29e-4417-adbb-f6b7c59dce62
2024-09-10 11:28:10,570 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/3da97799-9eb0-49a0-8c2c-19e62dc67d97
2024-09-10 11:28:10,580 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/3da97799-9eb0-49a0-8c2c-19e62dc67d97
2024-09-10 11:28:10,590 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/e905ef56-5ae9-42c1-a3ec-b0d93b7b6155
2024-09-10 11:28:10,606 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71545038:ctest-vn-96942248', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71545038', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16271217115130643479', 'uuid-lslong': '12518870858361327202'}, 'enable': 'true', 'created': '2024-09-10T11:28:07', 'last-modified': '2024-09-10T11:28:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.952850'}
2024-09-10 11:28:10,615 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-10 11:28:10,615 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96942248 passed
2024-09-10 11:28:10,616 - DEBUG - ====Verifying policy data for ctest-vn-96942248 in API_Server ======
2024-09-10 11:28:10,616 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-09-10 11:28:10,625 - DEBUG - Requesting: http://10.0.0.30:8082/domain/811f6376-797c-47c5-ae2b-a11059a65dff
2024-09-10 11:28:10,643 - DEBUG - Requesting: http://10.0.0.30:8082/project/0952aa39-e8f2-40ed-9867-b2cee5867a37
2024-09-10 11:28:10,731 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/e1cef9c1-f29e-4417-adbb-f6b7c59dce62
2024-09-10 11:28:10,743 - DEBUG - ==>Verifying data for policy with id: bff042d0-dafb-491f-9d77-a6da84493562, fqn: ['default-domain', 'ctest-TestBasicPolicy-71545038', 'ctest-policy-allow-all-43652489']
2024-09-10 11:28:10,743 - INFO - VN ctest-vn-96942248 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-10 11:28:10,743 - DEBUG - Verifying the vn in opserver
2024-09-10 11:28:10,743 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71545038:ctest-vn-96942248 virtual network link through opserver 10.0.0.30
2024-09-10 11:28:10,743 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2024-09-10 11:28:10,760 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71545038:ctest-vn-96942248', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71545038:ctest-vn-96942248?flat'}
2024-09-10 11:28:10,760 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71545038:ctest-vn-96942248 is found in opserver
2024-09-10 11:28:10,774 - DEBUG - Do not have enough data to verify VN in agent
2024-09-10 11:28:10,781 - DEBUG - VRF ids for VN ctest-vn-96942248: {}
2024-09-10 11:28:10,852 - DEBUG - Services list from nova: [