2024-10-19 17:59:40,326 - INFO - Domain Default found not creating
2024-10-19 17:59:40,504 - INFO - Project ctest-TestBasicPolicy-35111111 not found, creating it
2024-10-19 17:59:41,034 - INFO - Created Project:ctest-TestBasicPolicy-35111111, ID : a41df6a5-097a-423b-817f-a1d4827acb0c
2024-10-19 17:59:42,617 - INFO - ================================================================================
2024-10-19 17:59:42,618 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-19 17:59:42,618 - 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-19 17:59:42,887 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.11': '0'}} with
2024-10-19 17:59:42,887 - INFO - Initial checks done. Running the testcase now
2024-10-19 17:59:42,887 - INFO -
2024-10-19 17:59:43,467 - DEBUG - Response for create_network : {'network': {'id': 'd195c55d-fbe0-4338-a7d7-4be582721b51', 'name': 'ctest-vn-68910390', 'tenant_id': 'a41df6a5097a423b817fa1d4827acb0c', 'project_id': 'a41df6a5097a423b817fa1d4827acb0c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35111111', 'ctest-vn-68910390'], 'port_security_enabled': True, 'description': ''}}
2024-10-19 17:59:43,679 - DEBUG - Response for create_subnet : {'subnet': {'id': '64a69c20-fe3b-4f56-9ae0-80743afb9dcc', 'name': '', 'tenant_id': 'a41df6a5097a423b817fa1d4827acb0c', 'network_id': 'd195c55d-fbe0-4338-a7d7-4be582721b51', 'ip_version': 4, 'cidr': '98.83.183.0/26', 'allocation_pools': [{'start': '98.83.183.2', 'end': '98.83.183.62'}], 'gateway_ip': '98.83.183.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '98.83.183.2', 'tags': [], 'project_id': 'a41df6a5097a423b817fa1d4827acb0c'}}
2024-10-19 17:59:43,703 - INFO - Created VN ctest-vn-68910390
2024-10-19 17:59:43,760 - DEBUG - VN ctest-vn-68910390 UUID is d195c55d-fbe0-4338-a7d7-4be582721b51
2024-10-19 17:59:44,089 - DEBUG - Response for create_network : {'network': {'id': '0e7a1459-1f26-4f10-b465-a551dd7f6b95', 'name': 'ctest-vn-63223307', 'tenant_id': 'a41df6a5097a423b817fa1d4827acb0c', 'project_id': 'a41df6a5097a423b817fa1d4827acb0c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35111111', 'ctest-vn-63223307'], 'port_security_enabled': True, 'description': ''}}
2024-10-19 17:59:44,319 - DEBUG - Response for create_subnet : {'subnet': {'id': '85647acc-31fb-4738-8236-2135a9bba863', 'name': '', 'tenant_id': 'a41df6a5097a423b817fa1d4827acb0c', 'network_id': '0e7a1459-1f26-4f10-b465-a551dd7f6b95', 'ip_version': 4, 'cidr': '151.238.157.64/26', 'allocation_pools': [{'start': '151.238.157.66', 'end': '151.238.157.126'}], 'gateway_ip': '151.238.157.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '151.238.157.66', 'tags': [], 'project_id': 'a41df6a5097a423b817fa1d4827acb0c'}}
2024-10-19 17:59:44,341 - INFO - Created VN ctest-vn-63223307
2024-10-19 17:59:44,400 - DEBUG - VN ctest-vn-63223307 UUID is 0e7a1459-1f26-4f10-b465-a551dd7f6b95
2024-10-19 17:59:44,531 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-35111111:ctest-vn-68910390, 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-35111111:ctest-vn-63223307, 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-19 17:59:44,864 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd195c55d-fbe0-4338-a7d7-4be582721b51', 'name': 'ctest-vn-68910390', 'tenant_id': 'a41df6a5097a423b817fa1d4827acb0c', 'project_id': 'a41df6a5097a423b817fa1d4827acb0c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['64a69c20-fe3b-4f56-9ae0-80743afb9dcc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35111111', 'ctest-vn-68910390'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35111111', 'ctest-policy-allow-all-67093751']], 'subnet_ipam': [{'subnet_cidr': '98.83.183.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-19 17:59:45,175 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0e7a1459-1f26-4f10-b465-a551dd7f6b95', 'name': 'ctest-vn-63223307', 'tenant_id': 'a41df6a5097a423b817fa1d4827acb0c', 'project_id': 'a41df6a5097a423b817fa1d4827acb0c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['85647acc-31fb-4738-8236-2135a9bba863'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35111111', 'ctest-vn-63223307'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35111111', 'ctest-policy-allow-all-67093751']], 'subnet_ipam': [{'subnet_cidr': '151.238.157.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-19 17:59:45,328 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2024-10-19 17:59:45,649 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2024-10-19 17:59:45,684 - DEBUG - Requesting: http://10.0.0.40:8082/domain/46a1865c-c8cf-4efd-9ed3-5a7ae3fa7e2a
2024-10-19 17:59:45,700 - DEBUG - Requesting: http://10.0.0.40:8082/project/a41df6a5-097a-423b-817f-a1d4827acb0c
2024-10-19 17:59:45,786 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/d195c55d-fbe0-4338-a7d7-4be582721b51
2024-10-19 17:59:45,803 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/d195c55d-fbe0-4338-a7d7-4be582721b51
2024-10-19 17:59:45,820 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/3c148dd2-b5db-4629-9f03-acec53ee8260
2024-10-19 17:59:45,831 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/3c148dd2-b5db-4629-9f03-acec53ee8260
2024-10-19 17:59:45,840 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/5762c964-953a-4355-a527-57cc77591e0e
2024-10-19 17:59:45,848 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-19 17:59:45,848 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/d195c55d-fbe0-4338-a7d7-4be582721b51
2024-10-19 17:59:45,863 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/3c148dd2-b5db-4629-9f03-acec53ee8260
2024-10-19 17:59:45,883 - INFO - Verified VN network id 8 for VN d195c55d-fbe0-4338-a7d7-4be582721b51
2024-10-19 17:59:45,883 - INFO - Verifications in API Server for VN ctest-vn-68910390 passed
2024-10-19 17:59:45,883 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/d195c55d-fbe0-4338-a7d7-4be582721b51
2024-10-19 17:59:45,901 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/3c148dd2-b5db-4629-9f03-acec53ee8260
2024-10-19 17:59:45,910 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/3c148dd2-b5db-4629-9f03-acec53ee8260
2024-10-19 17:59:45,919 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/5762c964-953a-4355-a527-57cc77591e0e
2024-10-19 17:59:45,934 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35111111:ctest-vn-68910390', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35111111', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15102193932905235256', 'uuid-lslong': '12094218773434866513'}, 'enable': 'true', 'created': '2024-10-19T17:59:43', 'last-modified': '2024-10-19T17:59:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.094255'}
2024-10-19 17:59:45,941 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-19 17:59:45,941 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68910390 passed
2024-10-19 17:59:45,942 - DEBUG - ====Verifying policy data for ctest-vn-68910390 in API_Server ======
2024-10-19 17:59:45,942 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2024-10-19 17:59:45,948 - DEBUG - Requesting: http://10.0.0.40:8082/domain/46a1865c-c8cf-4efd-9ed3-5a7ae3fa7e2a
2024-10-19 17:59:45,964 - DEBUG - Requesting: http://10.0.0.40:8082/project/a41df6a5-097a-423b-817f-a1d4827acb0c
2024-10-19 17:59:46,046 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/d195c55d-fbe0-4338-a7d7-4be582721b51
2024-10-19 17:59:46,060 - DEBUG - ==>Verifying data for policy with id: 4568d590-4a70-4665-b434-f58f5ccc88a3, fqn: ['default-domain', 'ctest-TestBasicPolicy-35111111', 'ctest-policy-allow-all-67093751']
2024-10-19 17:59:46,060 - INFO - VN ctest-vn-68910390 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-19 17:59:46,060 - DEBUG - Verifying the vn in opserver
2024-10-19 17:59:46,060 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35111111:ctest-vn-68910390 virtual network link through opserver 10.0.0.40
2024-10-19 17:59:46,060 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2024-10-19 17:59:46,353 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2024-10-19 17:59:46,416 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35111111:ctest-vn-68910390', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35111111:ctest-vn-68910390?flat'}
2024-10-19 17:59:46,416 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35111111:ctest-vn-68910390 is found in opserver
2024-10-19 17:59:46,426 - DEBUG - Do not have enough data to verify VN in agent
2024-10-19 17:59:46,431 - DEBUG - VRF ids for VN ctest-vn-68910390: {}
2024-10-19 17:59:46,432 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2024-10-19 17:59:46,438 - DEBUG - Requesting: http://10.0.0.40:8082/domain/46a1865c-c8cf-4efd-9ed3-5a7ae3fa7e2a
2024-10-19 17:59:46,451 - DEBUG - Requesting: http://10.0.0.40:8082/project/a41df6a5-097a-423b-817f-a1d4827acb0c
2024-10-19 17:59:46,535 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/0e7a1459-1f26-4f10-b465-a551dd7f6b95
2024-10-19 17:59:46,557 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/0e7a1459-1f26-4f10-b465-a551dd7f6b95
2024-10-19 17:59:46,571 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/f6da987c-ef8f-4305-bfc5-3e8350042a97
2024-10-19 17:59:46,581 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/f6da987c-ef8f-4305-bfc5-3e8350042a97
2024-10-19 17:59:46,591 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/03d72aa2-e38f-4454-a54c-b4ab776d3dc0
2024-10-19 17:59:46,599 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-19 17:59:46,600 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/0e7a1459-1f26-4f10-b465-a551dd7f6b95
2024-10-19 17:59:46,614 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/f6da987c-ef8f-4305-bfc5-3e8350042a97
2024-10-19 17:59:46,637 - INFO - Verified VN network id 9 for VN 0e7a1459-1f26-4f10-b465-a551dd7f6b95
2024-10-19 17:59:46,637 - INFO - Verifications in API Server for VN ctest-vn-63223307 passed
2024-10-19 17:59:46,637 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/0e7a1459-1f26-4f10-b465-a551dd7f6b95
2024-10-19 17:59:46,651 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/f6da987c-ef8f-4305-bfc5-3e8350042a97
2024-10-19 17:59:46,660 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/f6da987c-ef8f-4305-bfc5-3e8350042a97
2024-10-19 17:59:46,669 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/03d72aa2-e38f-4454-a54c-b4ab776d3dc0
2024-10-19 17:59:46,684 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35111111:ctest-vn-63223307', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35111111', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1043168636696940304', 'uuid-lslong': '12998977670501854101'}, 'enable': 'true', 'created': '2024-10-19T17:59:44', 'last-modified': '2024-10-19T17:59:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.582051'}
2024-10-19 17:59:46,691 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-19 17:59:46,691 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63223307 passed
2024-10-19 17:59:46,691 - DEBUG - ====Verifying policy data for ctest-vn-63223307 in API_Server ======
2024-10-19 17:59:46,691 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2024-10-19 17:59:46,698 - DEBUG - Requesting: http://10.0.0.40:8082/domain/46a1865c-c8cf-4efd-9ed3-5a7ae3fa7e2a
2024-10-19 17:59:46,713 - DEBUG - Requesting: http://10.0.0.40:8082/project/a41df6a5-097a-423b-817f-a1d4827acb0c
2024-10-19 17:59:46,799 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/0e7a1459-1f26-4f10-b465-a551dd7f6b95
2024-10-19 17:59:46,814 - DEBUG - ==>Verifying data for policy with id: 4568d590-4a70-4665-b434-f58f5ccc88a3, fqn: ['default-domain', 'ctest-TestBasicPolicy-35111111', 'ctest-policy-allow-all-67093751']
2024-10-19 17:59:46,814 - INFO - VN ctest-vn-63223307 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-19 17:59:46,814 - DEBUG - Verifying the vn in opserver
2024-10-19 17:59:46,814 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35111111:ctest-vn-63223307 virtual network link through opserver 10.0.0.40
2024-10-19 17:59:46,814 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2024-10-19 17:59:46,827 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35111111:ctest-vn-63223307', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35111111:ctest-vn-63223307?flat'}
2024-10-19 17:59:46,827 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35111111:ctest-vn-63223307 is found in opserver
2024-10-19 17:59:46,839 - DEBUG - Do not have enough data to verify VN in agent
2024-10-19 17:59:46,844 - DEBUG - VRF ids for VN ctest-vn-63223307: {}
2024-10-19 17:59:46,902 - DEBUG - Services list from nova: [