2024-10-23 20:30:40,520 - INFO - Domain Default found not creating
2024-10-23 20:30:40,686 - INFO - Project ctest-TestBasicPolicy-95958009 not found, creating it
2024-10-23 20:30:41,199 - INFO - Created Project:ctest-TestBasicPolicy-95958009, ID : d716fa95-eac2-4dc5-ace6-6779e5492af7
2024-10-23 20:30:42,679 - INFO - ================================================================================
2024-10-23 20:30:42,679 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-23 20:30:42,679 - 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-23 20:30:42,939 - DEBUG - Nothing to compare xmpp stats {'10.0.0.35': {'10.20.0.5': '0'}} with
2024-10-23 20:30:42,939 - INFO - Initial checks done. Running the testcase now
2024-10-23 20:30:42,939 - INFO -
2024-10-23 20:30:43,513 - DEBUG - Response for create_network : {'network': {'id': 'e5679614-319e-41c3-afc6-52434d685ee3', 'name': 'ctest-vn-67331003', 'tenant_id': 'd716fa95eac24dc5ace66779e5492af7', 'project_id': 'd716fa95eac24dc5ace66779e5492af7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95958009', 'ctest-vn-67331003'], 'port_security_enabled': True, 'description': ''}}
2024-10-23 20:30:43,717 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e16d2683-d5ab-4381-add1-f82fc6227ac0', 'name': '', 'tenant_id': 'd716fa95eac24dc5ace66779e5492af7', 'network_id': 'e5679614-319e-41c3-afc6-52434d685ee3', 'ip_version': 4, 'cidr': '175.75.49.0/26', 'allocation_pools': [{'start': '175.75.49.2', 'end': '175.75.49.62'}], 'gateway_ip': '175.75.49.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '175.75.49.2', 'tags': [], 'project_id': 'd716fa95eac24dc5ace66779e5492af7'}}
2024-10-23 20:30:43,735 - INFO - Created VN ctest-vn-67331003
2024-10-23 20:30:43,794 - DEBUG - VN ctest-vn-67331003 UUID is e5679614-319e-41c3-afc6-52434d685ee3
2024-10-23 20:30:44,119 - DEBUG - Response for create_network : {'network': {'id': '1da042fd-5d78-4cfa-98ae-15a23d1602f3', 'name': 'ctest-vn-99260978', 'tenant_id': 'd716fa95eac24dc5ace66779e5492af7', 'project_id': 'd716fa95eac24dc5ace66779e5492af7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95958009', 'ctest-vn-99260978'], 'port_security_enabled': True, 'description': ''}}
2024-10-23 20:30:44,354 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a8517e86-42bd-4402-9570-b76b03329264', 'name': '', 'tenant_id': 'd716fa95eac24dc5ace66779e5492af7', 'network_id': '1da042fd-5d78-4cfa-98ae-15a23d1602f3', 'ip_version': 4, 'cidr': '145.52.39.0/26', 'allocation_pools': [{'start': '145.52.39.2', 'end': '145.52.39.62'}], 'gateway_ip': '145.52.39.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '145.52.39.2', 'tags': [], 'project_id': 'd716fa95eac24dc5ace66779e5492af7'}}
2024-10-23 20:30:44,377 - INFO - Created VN ctest-vn-99260978
2024-10-23 20:30:44,434 - DEBUG - VN ctest-vn-99260978 UUID is 1da042fd-5d78-4cfa-98ae-15a23d1602f3
2024-10-23 20:30:44,554 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-95958009:ctest-vn-67331003, 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-95958009:ctest-vn-99260978, 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-23 20:30:44,882 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e5679614-319e-41c3-afc6-52434d685ee3', 'name': 'ctest-vn-67331003', 'tenant_id': 'd716fa95eac24dc5ace66779e5492af7', 'project_id': 'd716fa95eac24dc5ace66779e5492af7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e16d2683-d5ab-4381-add1-f82fc6227ac0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95958009', 'ctest-vn-67331003'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95958009', 'ctest-policy-allow-all-54352594']], 'subnet_ipam': [{'subnet_cidr': '175.75.49.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-23 20:30:45,138 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1da042fd-5d78-4cfa-98ae-15a23d1602f3', 'name': 'ctest-vn-99260978', 'tenant_id': 'd716fa95eac24dc5ace66779e5492af7', 'project_id': 'd716fa95eac24dc5ace66779e5492af7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a8517e86-42bd-4402-9570-b76b03329264'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95958009', 'ctest-vn-99260978'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95958009', 'ctest-policy-allow-all-54352594']], 'subnet_ipam': [{'subnet_cidr': '145.52.39.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-23 20:30:45,314 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-10-23 20:30:45,609 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-10-23 20:30:45,640 - DEBUG - Requesting: http://10.0.0.35:8082/domain/b43fe4bb-0466-4bcc-9fd8-9339a863338e
2024-10-23 20:30:45,655 - DEBUG - Requesting: http://10.0.0.35:8082/project/d716fa95-eac2-4dc5-ace6-6779e5492af7
2024-10-23 20:30:45,735 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/e5679614-319e-41c3-afc6-52434d685ee3
2024-10-23 20:30:45,750 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/e5679614-319e-41c3-afc6-52434d685ee3
2024-10-23 20:30:45,764 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/cf2fb829-7181-4230-9a45-342aad556746
2024-10-23 20:30:45,772 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/cf2fb829-7181-4230-9a45-342aad556746
2024-10-23 20:30:45,780 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/df6e52c0-e2f0-4f42-9833-eb774539fdac
2024-10-23 20:30:45,788 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-23 20:30:45,788 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/e5679614-319e-41c3-afc6-52434d685ee3
2024-10-23 20:30:45,803 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/cf2fb829-7181-4230-9a45-342aad556746
2024-10-23 20:30:45,826 - INFO - Verified VN network id 8 for VN e5679614-319e-41c3-afc6-52434d685ee3
2024-10-23 20:30:45,826 - INFO - Verifications in API Server for VN ctest-vn-67331003 passed
2024-10-23 20:30:45,826 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/e5679614-319e-41c3-afc6-52434d685ee3
2024-10-23 20:30:45,841 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/cf2fb829-7181-4230-9a45-342aad556746
2024-10-23 20:30:45,849 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/cf2fb829-7181-4230-9a45-342aad556746
2024-10-23 20:30:45,857 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/df6e52c0-e2f0-4f42-9833-eb774539fdac
2024-10-23 20:30:45,871 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95958009:ctest-vn-67331003', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95958009', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16530345970762662339', 'uuid-lslong': '12665901451041070819'}, 'enable': 'true', 'created': '2024-10-23T20:30:43', 'last-modified': '2024-10-23T20:30:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.019170'}
2024-10-23 20:30:45,878 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-23 20:30:45,878 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67331003 passed
2024-10-23 20:30:45,878 - DEBUG - ====Verifying policy data for ctest-vn-67331003 in API_Server ======
2024-10-23 20:30:45,879 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-10-23 20:30:45,885 - DEBUG - Requesting: http://10.0.0.35:8082/domain/b43fe4bb-0466-4bcc-9fd8-9339a863338e
2024-10-23 20:30:45,897 - DEBUG - Requesting: http://10.0.0.35:8082/project/d716fa95-eac2-4dc5-ace6-6779e5492af7
2024-10-23 20:30:45,971 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/e5679614-319e-41c3-afc6-52434d685ee3
2024-10-23 20:30:45,985 - DEBUG - ==>Verifying data for policy with id: 1d5fed81-7c63-486c-9237-51746f5dee76, fqn: ['default-domain', 'ctest-TestBasicPolicy-95958009', 'ctest-policy-allow-all-54352594']
2024-10-23 20:30:45,985 - INFO - VN ctest-vn-67331003 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-23 20:30:45,986 - DEBUG - Verifying the vn in opserver
2024-10-23 20:30:45,986 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95958009:ctest-vn-67331003 virtual network link through opserver 10.0.0.35
2024-10-23 20:30:45,986 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2024-10-23 20:30:46,281 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2024-10-23 20:30:46,341 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95958009:ctest-vn-67331003', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95958009:ctest-vn-67331003?flat'}
2024-10-23 20:30:46,341 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95958009:ctest-vn-67331003 is found in opserver
2024-10-23 20:30:46,352 - DEBUG - Do not have enough data to verify VN in agent
2024-10-23 20:30:46,358 - DEBUG - VRF ids for VN ctest-vn-67331003: {}
2024-10-23 20:30:46,358 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-10-23 20:30:46,373 - DEBUG - Requesting: http://10.0.0.35:8082/domain/b43fe4bb-0466-4bcc-9fd8-9339a863338e
2024-10-23 20:30:46,389 - DEBUG - Requesting: http://10.0.0.35:8082/project/d716fa95-eac2-4dc5-ace6-6779e5492af7
2024-10-23 20:30:46,478 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/1da042fd-5d78-4cfa-98ae-15a23d1602f3
2024-10-23 20:30:46,500 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/1da042fd-5d78-4cfa-98ae-15a23d1602f3
2024-10-23 20:30:46,517 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/bd411d12-03d6-4df3-b0d6-7bd88d575875
2024-10-23 20:30:46,527 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/bd411d12-03d6-4df3-b0d6-7bd88d575875
2024-10-23 20:30:46,536 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/9cea77f2-7c76-494f-a7e4-dbabf9fdeb7c
2024-10-23 20:30:46,544 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-23 20:30:46,544 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/1da042fd-5d78-4cfa-98ae-15a23d1602f3
2024-10-23 20:30:46,557 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/bd411d12-03d6-4df3-b0d6-7bd88d575875
2024-10-23 20:30:46,580 - INFO - Verified VN network id 9 for VN 1da042fd-5d78-4cfa-98ae-15a23d1602f3
2024-10-23 20:30:46,580 - INFO - Verifications in API Server for VN ctest-vn-99260978 passed
2024-10-23 20:30:46,580 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/1da042fd-5d78-4cfa-98ae-15a23d1602f3
2024-10-23 20:30:46,595 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/bd411d12-03d6-4df3-b0d6-7bd88d575875
2024-10-23 20:30:46,605 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/bd411d12-03d6-4df3-b0d6-7bd88d575875
2024-10-23 20:30:46,613 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/9cea77f2-7c76-494f-a7e4-dbabf9fdeb7c
2024-10-23 20:30:46,626 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95958009:ctest-vn-99260978', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95958009', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2134779879335939322', 'uuid-lslong': '11001754726266438387'}, 'enable': 'true', 'created': '2024-10-23T20:30:44', 'last-modified': '2024-10-23T20:30:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.519340'}
2024-10-23 20:30:46,632 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-23 20:30:46,632 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99260978 passed
2024-10-23 20:30:46,632 - DEBUG - ====Verifying policy data for ctest-vn-99260978 in API_Server ======
2024-10-23 20:30:46,632 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-10-23 20:30:46,639 - DEBUG - Requesting: http://10.0.0.35:8082/domain/b43fe4bb-0466-4bcc-9fd8-9339a863338e
2024-10-23 20:30:46,651 - DEBUG - Requesting: http://10.0.0.35:8082/project/d716fa95-eac2-4dc5-ace6-6779e5492af7
2024-10-23 20:30:46,734 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/1da042fd-5d78-4cfa-98ae-15a23d1602f3
2024-10-23 20:30:46,748 - DEBUG - ==>Verifying data for policy with id: 1d5fed81-7c63-486c-9237-51746f5dee76, fqn: ['default-domain', 'ctest-TestBasicPolicy-95958009', 'ctest-policy-allow-all-54352594']
2024-10-23 20:30:46,748 - INFO - VN ctest-vn-99260978 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-23 20:30:46,748 - DEBUG - Verifying the vn in opserver
2024-10-23 20:30:46,748 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95958009:ctest-vn-99260978 virtual network link through opserver 10.0.0.35
2024-10-23 20:30:46,749 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2024-10-23 20:30:46,766 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95958009:ctest-vn-99260978', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95958009:ctest-vn-99260978?flat'}
2024-10-23 20:30:46,766 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95958009:ctest-vn-99260978 is found in opserver
2024-10-23 20:30:46,779 - DEBUG - Do not have enough data to verify VN in agent
2024-10-23 20:30:46,786 - DEBUG - VRF ids for VN ctest-vn-99260978: {}
2024-10-23 20:30:46,847 - DEBUG - Services list from nova: [