2024-11-05 11:51:31,027 - INFO - Domain Default found not creating
2024-11-05 11:51:31,330 - INFO - Project ctest-TestBasicPolicy-64381694 not found, creating it
2024-11-05 11:51:32,334 - INFO - Created Project:ctest-TestBasicPolicy-64381694, ID : ed19980c-3ffc-46af-8a51-d7c69a1bdb5f
2024-11-05 11:51:34,115 - INFO - ================================================================================
2024-11-05 11:51:34,115 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-05 11:51:34,115 - 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-05 11:51:34,378 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.29': '0'}} with
2024-11-05 11:51:34,378 - INFO - Initial checks done. Running the testcase now
2024-11-05 11:51:34,378 - INFO -
2024-11-05 11:51:35,097 - DEBUG - Response for create_network : {'network': {'id': '8821bbef-6d53-4715-897c-89b57a6ee0a2', 'name': 'ctest-vn-13134779', 'tenant_id': 'ed19980c3ffc46af8a51d7c69a1bdb5f', 'project_id': 'ed19980c3ffc46af8a51d7c69a1bdb5f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64381694', 'ctest-vn-13134779'], 'port_security_enabled': True, 'description': ''}}
2024-11-05 11:51:35,349 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c8c1991f-ecd4-4025-a5bf-4b563549e0dc', 'name': '', 'tenant_id': 'ed19980c3ffc46af8a51d7c69a1bdb5f', 'network_id': '8821bbef-6d53-4715-897c-89b57a6ee0a2', 'ip_version': 4, 'cidr': '119.121.212.128/26', 'allocation_pools': [{'start': '119.121.212.130', 'end': '119.121.212.190'}], 'gateway_ip': '119.121.212.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '119.121.212.130', 'tags': [], 'project_id': 'ed19980c3ffc46af8a51d7c69a1bdb5f'}}
2024-11-05 11:51:35,377 - INFO - Created VN ctest-vn-13134779
2024-11-05 11:51:35,439 - DEBUG - VN ctest-vn-13134779 UUID is 8821bbef-6d53-4715-897c-89b57a6ee0a2
2024-11-05 11:51:35,840 - DEBUG - Response for create_network : {'network': {'id': 'c8a63f86-de16-456e-bc20-294344ba3ef3', 'name': 'ctest-vn-24493284', 'tenant_id': 'ed19980c3ffc46af8a51d7c69a1bdb5f', 'project_id': 'ed19980c3ffc46af8a51d7c69a1bdb5f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64381694', 'ctest-vn-24493284'], 'port_security_enabled': True, 'description': ''}}
2024-11-05 11:51:36,088 - DEBUG - Response for create_subnet : {'subnet': {'id': '9e49b086-0c65-4602-b306-124752edf4bb', 'name': '', 'tenant_id': 'ed19980c3ffc46af8a51d7c69a1bdb5f', 'network_id': 'c8a63f86-de16-456e-bc20-294344ba3ef3', 'ip_version': 4, 'cidr': '205.18.17.128/26', 'allocation_pools': [{'start': '205.18.17.130', 'end': '205.18.17.190'}], 'gateway_ip': '205.18.17.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '205.18.17.130', 'tags': [], 'project_id': 'ed19980c3ffc46af8a51d7c69a1bdb5f'}}
2024-11-05 11:51:36,112 - INFO - Created VN ctest-vn-24493284
2024-11-05 11:51:36,171 - DEBUG - VN ctest-vn-24493284 UUID is c8a63f86-de16-456e-bc20-294344ba3ef3
2024-11-05 11:51:36,317 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-64381694:ctest-vn-13134779, 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-64381694:ctest-vn-24493284, 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-05 11:51:36,671 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8821bbef-6d53-4715-897c-89b57a6ee0a2', 'name': 'ctest-vn-13134779', 'tenant_id': 'ed19980c3ffc46af8a51d7c69a1bdb5f', 'project_id': 'ed19980c3ffc46af8a51d7c69a1bdb5f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c8c1991f-ecd4-4025-a5bf-4b563549e0dc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64381694', 'ctest-vn-13134779'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64381694', 'ctest-policy-allow-all-57233338']], 'subnet_ipam': [{'subnet_cidr': '119.121.212.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-05 11:51:36,945 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c8a63f86-de16-456e-bc20-294344ba3ef3', 'name': 'ctest-vn-24493284', 'tenant_id': 'ed19980c3ffc46af8a51d7c69a1bdb5f', 'project_id': 'ed19980c3ffc46af8a51d7c69a1bdb5f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9e49b086-0c65-4602-b306-124752edf4bb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64381694', 'ctest-vn-24493284'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64381694', 'ctest-policy-allow-all-57233338']], 'subnet_ipam': [{'subnet_cidr': '205.18.17.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-05 11:51:37,127 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2024-11-05 11:51:37,491 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2024-11-05 11:51:37,870 - DEBUG - Requesting: http://10.0.0.40:8082/domain/bd083598-2aba-49f0-b25c-4c1905035cdf
2024-11-05 11:51:37,897 - DEBUG - Requesting: http://10.0.0.40:8082/project/ed19980c-3ffc-46af-8a51-d7c69a1bdb5f
2024-11-05 11:51:37,995 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/8821bbef-6d53-4715-897c-89b57a6ee0a2
2024-11-05 11:51:38,014 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/8821bbef-6d53-4715-897c-89b57a6ee0a2
2024-11-05 11:51:38,031 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/2816ea39-f141-44fc-a639-b8a1fb3c5a65
2024-11-05 11:51:38,042 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/2816ea39-f141-44fc-a639-b8a1fb3c5a65
2024-11-05 11:51:38,053 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/43d9defe-89d9-4c67-b784-15118f271206
2024-11-05 11:51:38,063 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-05 11:51:38,063 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/8821bbef-6d53-4715-897c-89b57a6ee0a2
2024-11-05 11:51:38,081 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/2816ea39-f141-44fc-a639-b8a1fb3c5a65
2024-11-05 11:51:38,110 - INFO - Verified VN network id 8 for VN 8821bbef-6d53-4715-897c-89b57a6ee0a2
2024-11-05 11:51:38,110 - INFO - Verifications in API Server for VN ctest-vn-13134779 passed
2024-11-05 11:51:38,111 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/8821bbef-6d53-4715-897c-89b57a6ee0a2
2024-11-05 11:51:38,136 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/2816ea39-f141-44fc-a639-b8a1fb3c5a65
2024-11-05 11:51:38,152 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/2816ea39-f141-44fc-a639-b8a1fb3c5a65
2024-11-05 11:51:38,163 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/43d9defe-89d9-4c67-b784-15118f271206
2024-11-05 11:51:38,178 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64381694:ctest-vn-13134779', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64381694', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9809328100395403029', 'uuid-lslong': '9906944692844421282'}, 'enable': 'true', 'created': '2024-11-05T11:51:35', 'last-modified': '2024-11-05T11:51:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.537821'}
2024-11-05 11:51:38,186 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-05 11:51:38,186 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13134779 passed
2024-11-05 11:51:38,187 - DEBUG - ====Verifying policy data for ctest-vn-13134779 in API_Server ======
2024-11-05 11:51:38,187 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2024-11-05 11:51:38,195 - DEBUG - Requesting: http://10.0.0.40:8082/domain/bd083598-2aba-49f0-b25c-4c1905035cdf
2024-11-05 11:51:38,210 - DEBUG - Requesting: http://10.0.0.40:8082/project/ed19980c-3ffc-46af-8a51-d7c69a1bdb5f
2024-11-05 11:51:38,300 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/8821bbef-6d53-4715-897c-89b57a6ee0a2
2024-11-05 11:51:38,324 - DEBUG - ==>Verifying data for policy with id: 7cce0eb9-1e7e-4d36-90c0-ffb70d0fedb6, fqn: ['default-domain', 'ctest-TestBasicPolicy-64381694', 'ctest-policy-allow-all-57233338']
2024-11-05 11:51:38,324 - INFO - VN ctest-vn-13134779 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-05 11:51:38,324 - DEBUG - Verifying the vn in opserver
2024-11-05 11:51:38,324 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64381694:ctest-vn-13134779 virtual network link through opserver 10.0.0.40
2024-11-05 11:51:38,325 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2024-11-05 11:51:38,668 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2024-11-05 11:51:38,754 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64381694:ctest-vn-13134779', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64381694:ctest-vn-13134779?flat'}
2024-11-05 11:51:38,754 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64381694:ctest-vn-13134779 is found in opserver
2024-11-05 11:51:38,767 - DEBUG - Do not have enough data to verify VN in agent
2024-11-05 11:51:38,772 - DEBUG - VRF ids for VN ctest-vn-13134779: {}
2024-11-05 11:51:38,772 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2024-11-05 11:51:38,779 - DEBUG - Requesting: http://10.0.0.40:8082/domain/bd083598-2aba-49f0-b25c-4c1905035cdf
2024-11-05 11:51:38,800 - DEBUG - Requesting: http://10.0.0.40:8082/project/ed19980c-3ffc-46af-8a51-d7c69a1bdb5f
2024-11-05 11:51:38,883 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/c8a63f86-de16-456e-bc20-294344ba3ef3
2024-11-05 11:51:38,903 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/c8a63f86-de16-456e-bc20-294344ba3ef3
2024-11-05 11:51:38,927 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/ffd9f257-716c-421e-8f73-11a684fd3716
2024-11-05 11:51:38,941 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/ffd9f257-716c-421e-8f73-11a684fd3716
2024-11-05 11:51:38,951 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/ff6f8f4f-bbc6-4657-92a5-4960f32e9833
2024-11-05 11:51:38,961 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-05 11:51:38,961 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/c8a63f86-de16-456e-bc20-294344ba3ef3
2024-11-05 11:51:38,979 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/ffd9f257-716c-421e-8f73-11a684fd3716
2024-11-05 11:51:39,003 - INFO - Verified VN network id 9 for VN c8a63f86-de16-456e-bc20-294344ba3ef3
2024-11-05 11:51:39,003 - INFO - Verifications in API Server for VN ctest-vn-24493284 passed
2024-11-05 11:51:39,003 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/c8a63f86-de16-456e-bc20-294344ba3ef3
2024-11-05 11:51:39,020 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/ffd9f257-716c-421e-8f73-11a684fd3716
2024-11-05 11:51:39,032 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/ffd9f257-716c-421e-8f73-11a684fd3716
2024-11-05 11:51:39,045 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/ff6f8f4f-bbc6-4657-92a5-4960f32e9833
2024-11-05 11:51:39,061 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64381694:ctest-vn-24493284', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64381694', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14458313502203725166', 'uuid-lslong': '13555880247277797107'}, 'enable': 'true', 'created': '2024-11-05T11:51:35', 'last-modified': '2024-11-05T11:51:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.152970'}
2024-11-05 11:51:39,070 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-05 11:51:39,070 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24493284 passed
2024-11-05 11:51:39,070 - DEBUG - ====Verifying policy data for ctest-vn-24493284 in API_Server ======
2024-11-05 11:51:39,070 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2024-11-05 11:51:39,077 - DEBUG - Requesting: http://10.0.0.40:8082/domain/bd083598-2aba-49f0-b25c-4c1905035cdf
2024-11-05 11:51:39,094 - DEBUG - Requesting: http://10.0.0.40:8082/project/ed19980c-3ffc-46af-8a51-d7c69a1bdb5f
2024-11-05 11:51:39,182 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/c8a63f86-de16-456e-bc20-294344ba3ef3
2024-11-05 11:51:39,199 - DEBUG - ==>Verifying data for policy with id: 7cce0eb9-1e7e-4d36-90c0-ffb70d0fedb6, fqn: ['default-domain', 'ctest-TestBasicPolicy-64381694', 'ctest-policy-allow-all-57233338']
2024-11-05 11:51:39,199 - INFO - VN ctest-vn-24493284 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-05 11:51:39,199 - DEBUG - Verifying the vn in opserver
2024-11-05 11:51:39,199 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64381694:ctest-vn-24493284 virtual network link through opserver 10.0.0.40
2024-11-05 11:51:39,199 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2024-11-05 11:51:39,214 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64381694:ctest-vn-24493284', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64381694:ctest-vn-24493284?flat'}
2024-11-05 11:51:39,214 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64381694:ctest-vn-24493284 is found in opserver
2024-11-05 11:51:39,227 - DEBUG - Do not have enough data to verify VN in agent
2024-11-05 11:51:39,233 - DEBUG - VRF ids for VN ctest-vn-24493284: {}
2024-11-05 11:51:39,307 - DEBUG - Services list from nova: [