2024-11-10 00:39:48,721 - INFO - Domain Default found not creating
2024-11-10 00:39:48,877 - INFO - Project ctest-TestBasicPolicy-39971057 not found, creating it
2024-11-10 00:39:49,376 - INFO - Created Project:ctest-TestBasicPolicy-39971057, ID : 8a0d6d4c-708d-438d-910d-5a7df18b5018
2024-11-10 00:39:50,870 - INFO - ================================================================================
2024-11-10 00:39:50,870 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-10 00:39:50,870 - 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-10 00:39:51,140 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.25': '0'}} with
2024-11-10 00:39:51,140 - INFO - Initial checks done. Running the testcase now
2024-11-10 00:39:51,140 - INFO -
2024-11-10 00:39:51,713 - DEBUG - Response for create_network : {'network': {'id': '720b840d-9074-42f5-84d2-12d95615e5f5', 'name': 'ctest-vn-94755217', 'tenant_id': '8a0d6d4c708d438d910d5a7df18b5018', 'project_id': '8a0d6d4c708d438d910d5a7df18b5018', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39971057', 'ctest-vn-94755217'], 'port_security_enabled': True, 'description': ''}}
2024-11-10 00:39:51,866 - DEBUG - Response for create_subnet : {'subnet': {'id': '1e9ff8a6-e1b4-4744-95fb-d9861c5edd57', 'name': '', 'tenant_id': '8a0d6d4c708d438d910d5a7df18b5018', 'network_id': '720b840d-9074-42f5-84d2-12d95615e5f5', 'ip_version': 4, 'cidr': '212.188.83.192/26', 'allocation_pools': [{'start': '212.188.83.194', 'end': '212.188.83.254'}], 'gateway_ip': '212.188.83.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '212.188.83.194', 'tags': [], 'project_id': '8a0d6d4c708d438d910d5a7df18b5018'}}
2024-11-10 00:39:51,884 - INFO - Created VN ctest-vn-94755217
2024-11-10 00:39:51,943 - DEBUG - VN ctest-vn-94755217 UUID is 720b840d-9074-42f5-84d2-12d95615e5f5
2024-11-10 00:39:52,239 - DEBUG - Response for create_network : {'network': {'id': '568107c7-ff03-402e-a3fd-c932f16c02a9', 'name': 'ctest-vn-54378935', 'tenant_id': '8a0d6d4c708d438d910d5a7df18b5018', 'project_id': '8a0d6d4c708d438d910d5a7df18b5018', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39971057', 'ctest-vn-54378935'], 'port_security_enabled': True, 'description': ''}}
2024-11-10 00:39:52,443 - DEBUG - Response for create_subnet : {'subnet': {'id': '580114fb-5991-47eb-a3bb-5932cf17b400', 'name': '', 'tenant_id': '8a0d6d4c708d438d910d5a7df18b5018', 'network_id': '568107c7-ff03-402e-a3fd-c932f16c02a9', 'ip_version': 4, 'cidr': '22.235.48.64/26', 'allocation_pools': [{'start': '22.235.48.66', 'end': '22.235.48.126'}], 'gateway_ip': '22.235.48.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22.235.48.66', 'tags': [], 'project_id': '8a0d6d4c708d438d910d5a7df18b5018'}}
2024-11-10 00:39:52,464 - INFO - Created VN ctest-vn-54378935
2024-11-10 00:39:52,523 - DEBUG - VN ctest-vn-54378935 UUID is 568107c7-ff03-402e-a3fd-c932f16c02a9
2024-11-10 00:39:52,656 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-39971057:ctest-vn-94755217, 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-39971057:ctest-vn-54378935, 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-10 00:39:53,024 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '720b840d-9074-42f5-84d2-12d95615e5f5', 'name': 'ctest-vn-94755217', 'tenant_id': '8a0d6d4c708d438d910d5a7df18b5018', 'project_id': '8a0d6d4c708d438d910d5a7df18b5018', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1e9ff8a6-e1b4-4744-95fb-d9861c5edd57'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39971057', 'ctest-vn-94755217'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39971057', 'ctest-policy-allow-all-20483392']], 'subnet_ipam': [{'subnet_cidr': '212.188.83.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-10 00:39:53,294 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '568107c7-ff03-402e-a3fd-c932f16c02a9', 'name': 'ctest-vn-54378935', 'tenant_id': '8a0d6d4c708d438d910d5a7df18b5018', 'project_id': '8a0d6d4c708d438d910d5a7df18b5018', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['580114fb-5991-47eb-a3bb-5932cf17b400'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39971057', 'ctest-vn-54378935'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39971057', 'ctest-policy-allow-all-20483392']], 'subnet_ipam': [{'subnet_cidr': '22.235.48.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-10 00:39:53,467 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-11-10 00:39:53,773 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-11-10 00:39:53,808 - DEBUG - Requesting: http://10.0.0.29:8082/domain/e70409f1-e19f-4af2-a675-314a546d1614
2024-11-10 00:39:53,823 - DEBUG - Requesting: http://10.0.0.29:8082/project/8a0d6d4c-708d-438d-910d-5a7df18b5018
2024-11-10 00:39:53,906 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/720b840d-9074-42f5-84d2-12d95615e5f5
2024-11-10 00:39:53,922 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/720b840d-9074-42f5-84d2-12d95615e5f5
2024-11-10 00:39:53,936 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/87b86880-b66f-404c-94b6-36948f5fbc84
2024-11-10 00:39:53,946 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/87b86880-b66f-404c-94b6-36948f5fbc84
2024-11-10 00:39:53,956 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/b6ca70db-c023-4bc9-81f6-89fe745c1a27
2024-11-10 00:39:53,966 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-10 00:39:53,966 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/720b840d-9074-42f5-84d2-12d95615e5f5
2024-11-10 00:39:53,981 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/87b86880-b66f-404c-94b6-36948f5fbc84
2024-11-10 00:39:54,005 - INFO - Verified VN network id 8 for VN 720b840d-9074-42f5-84d2-12d95615e5f5
2024-11-10 00:39:54,005 - INFO - Verifications in API Server for VN ctest-vn-94755217 passed
2024-11-10 00:39:54,005 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/720b840d-9074-42f5-84d2-12d95615e5f5
2024-11-10 00:39:54,019 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/87b86880-b66f-404c-94b6-36948f5fbc84
2024-11-10 00:39:54,029 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/87b86880-b66f-404c-94b6-36948f5fbc84
2024-11-10 00:39:54,041 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/b6ca70db-c023-4bc9-81f6-89fe745c1a27
2024-11-10 00:39:54,056 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39971057:ctest-vn-94755217', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39971057', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8217807138860581621', 'uuid-lslong': '9570732882777204213'}, 'enable': 'true', 'created': '2024-11-10T00:39:51', 'last-modified': '2024-11-10T00:39:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.066531'}
2024-11-10 00:39:54,065 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-10 00:39:54,065 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94755217 passed
2024-11-10 00:39:54,065 - DEBUG - ====Verifying policy data for ctest-vn-94755217 in API_Server ======
2024-11-10 00:39:54,065 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-11-10 00:39:54,074 - DEBUG - Requesting: http://10.0.0.29:8082/domain/e70409f1-e19f-4af2-a675-314a546d1614
2024-11-10 00:39:54,090 - DEBUG - Requesting: http://10.0.0.29:8082/project/8a0d6d4c-708d-438d-910d-5a7df18b5018
2024-11-10 00:39:54,172 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/720b840d-9074-42f5-84d2-12d95615e5f5
2024-11-10 00:39:54,188 - DEBUG - ==>Verifying data for policy with id: 4d98e3dc-90ab-4b3e-ae50-5dda211f4c34, fqn: ['default-domain', 'ctest-TestBasicPolicy-39971057', 'ctest-policy-allow-all-20483392']
2024-11-10 00:39:54,188 - INFO - VN ctest-vn-94755217 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-10 00:39:54,188 - DEBUG - Verifying the vn in opserver
2024-11-10 00:39:54,188 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39971057:ctest-vn-94755217 virtual network link through opserver 10.0.0.29
2024-11-10 00:39:54,189 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-11-10 00:39:54,492 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-11-10 00:39:54,560 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39971057:ctest-vn-94755217', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39971057:ctest-vn-94755217?flat'}
2024-11-10 00:39:54,560 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39971057:ctest-vn-94755217 is found in opserver
2024-11-10 00:39:54,571 - DEBUG - Do not have enough data to verify VN in agent
2024-11-10 00:39:54,577 - DEBUG - VRF ids for VN ctest-vn-94755217: {}
2024-11-10 00:39:54,577 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-11-10 00:39:54,583 - DEBUG - Requesting: http://10.0.0.29:8082/domain/e70409f1-e19f-4af2-a675-314a546d1614
2024-11-10 00:39:54,597 - DEBUG - Requesting: http://10.0.0.29:8082/project/8a0d6d4c-708d-438d-910d-5a7df18b5018
2024-11-10 00:39:54,703 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/568107c7-ff03-402e-a3fd-c932f16c02a9
2024-11-10 00:39:54,723 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/568107c7-ff03-402e-a3fd-c932f16c02a9
2024-11-10 00:39:54,738 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/b5a1b91d-6e9f-426d-8d49-7c8958443d71
2024-11-10 00:39:54,748 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/b5a1b91d-6e9f-426d-8d49-7c8958443d71
2024-11-10 00:39:54,756 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/63b37841-3412-466c-a65f-c92930d6b911
2024-11-10 00:39:54,764 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-10 00:39:54,764 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/568107c7-ff03-402e-a3fd-c932f16c02a9
2024-11-10 00:39:54,777 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/b5a1b91d-6e9f-426d-8d49-7c8958443d71
2024-11-10 00:39:54,797 - INFO - Verified VN network id 9 for VN 568107c7-ff03-402e-a3fd-c932f16c02a9
2024-11-10 00:39:54,798 - INFO - Verifications in API Server for VN ctest-vn-54378935 passed
2024-11-10 00:39:54,798 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/568107c7-ff03-402e-a3fd-c932f16c02a9
2024-11-10 00:39:54,812 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/b5a1b91d-6e9f-426d-8d49-7c8958443d71
2024-11-10 00:39:54,821 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/b5a1b91d-6e9f-426d-8d49-7c8958443d71
2024-11-10 00:39:54,832 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/63b37841-3412-466c-a65f-c92930d6b911
2024-11-10 00:39:54,850 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39971057:ctest-vn-54378935', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39971057', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6233271914815766574', 'uuid-lslong': '11816822217925984937'}, 'enable': 'true', 'created': '2024-11-10T00:39:52', 'last-modified': '2024-11-10T00:39:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.581561'}
2024-11-10 00:39:54,858 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-10 00:39:54,858 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54378935 passed
2024-11-10 00:39:54,859 - DEBUG - ====Verifying policy data for ctest-vn-54378935 in API_Server ======
2024-11-10 00:39:54,859 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-11-10 00:39:54,865 - DEBUG - Requesting: http://10.0.0.29:8082/domain/e70409f1-e19f-4af2-a675-314a546d1614
2024-11-10 00:39:54,883 - DEBUG - Requesting: http://10.0.0.29:8082/project/8a0d6d4c-708d-438d-910d-5a7df18b5018
2024-11-10 00:39:54,964 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/568107c7-ff03-402e-a3fd-c932f16c02a9
2024-11-10 00:39:54,980 - DEBUG - ==>Verifying data for policy with id: 4d98e3dc-90ab-4b3e-ae50-5dda211f4c34, fqn: ['default-domain', 'ctest-TestBasicPolicy-39971057', 'ctest-policy-allow-all-20483392']
2024-11-10 00:39:54,980 - INFO - VN ctest-vn-54378935 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-10 00:39:54,980 - DEBUG - Verifying the vn in opserver
2024-11-10 00:39:54,980 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39971057:ctest-vn-54378935 virtual network link through opserver 10.0.0.29
2024-11-10 00:39:54,981 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-11-10 00:39:54,997 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39971057:ctest-vn-54378935', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39971057:ctest-vn-54378935?flat'}
2024-11-10 00:39:54,997 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39971057:ctest-vn-54378935 is found in opserver
2024-11-10 00:39:55,013 - DEBUG - Do not have enough data to verify VN in agent
2024-11-10 00:39:55,019 - DEBUG - VRF ids for VN ctest-vn-54378935: {}
2024-11-10 00:39:55,075 - DEBUG - Services list from nova: [