2024-11-08 06:35:37,309 - INFO - Domain Default found not creating
2024-11-08 06:35:37,501 - INFO - Project ctest-TestBasicPolicy-61664747 not found, creating it
2024-11-08 06:35:38,011 - INFO - Created Project:ctest-TestBasicPolicy-61664747, ID : c6649841-7a6a-4463-9e0f-7bbd0f3d479b
2024-11-08 06:35:39,550 - INFO - ================================================================================
2024-11-08 06:35:39,550 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-08 06:35:39,550 - 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-08 06:35:39,809 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.34': '0'}} with
2024-11-08 06:35:39,810 - INFO - Initial checks done. Running the testcase now
2024-11-08 06:35:39,810 - INFO -
2024-11-08 06:35:40,414 - DEBUG - Response for create_network : {'network': {'id': '1dfddc96-1dd0-4da2-a6c0-e22e973561c4', 'name': 'ctest-vn-16351376', 'tenant_id': 'c66498417a6a44639e0f7bbd0f3d479b', 'project_id': 'c66498417a6a44639e0f7bbd0f3d479b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61664747', 'ctest-vn-16351376'], 'port_security_enabled': True, 'description': ''}}
2024-11-08 06:35:40,635 - DEBUG - Response for create_subnet : {'subnet': {'id': '7dc45128-45e3-47d8-acdf-52fdaaf96cd2', 'name': '', 'tenant_id': 'c66498417a6a44639e0f7bbd0f3d479b', 'network_id': '1dfddc96-1dd0-4da2-a6c0-e22e973561c4', 'ip_version': 4, 'cidr': '53.179.118.192/26', 'allocation_pools': [{'start': '53.179.118.194', 'end': '53.179.118.254'}], 'gateway_ip': '53.179.118.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '53.179.118.194', 'tags': [], 'project_id': 'c66498417a6a44639e0f7bbd0f3d479b'}}
2024-11-08 06:35:40,655 - INFO - Created VN ctest-vn-16351376
2024-11-08 06:35:40,716 - DEBUG - VN ctest-vn-16351376 UUID is 1dfddc96-1dd0-4da2-a6c0-e22e973561c4
2024-11-08 06:35:41,058 - DEBUG - Response for create_network : {'network': {'id': 'd59f0e55-7109-4a44-9212-527a92bf4bf1', 'name': 'ctest-vn-46055972', 'tenant_id': 'c66498417a6a44639e0f7bbd0f3d479b', 'project_id': 'c66498417a6a44639e0f7bbd0f3d479b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61664747', 'ctest-vn-46055972'], 'port_security_enabled': True, 'description': ''}}
2024-11-08 06:35:41,247 - DEBUG - Response for create_subnet : {'subnet': {'id': '707b4835-f1eb-4c8b-a342-5966495265db', 'name': '', 'tenant_id': 'c66498417a6a44639e0f7bbd0f3d479b', 'network_id': 'd59f0e55-7109-4a44-9212-527a92bf4bf1', 'ip_version': 4, 'cidr': '2.242.211.64/26', 'allocation_pools': [{'start': '2.242.211.66', 'end': '2.242.211.126'}], 'gateway_ip': '2.242.211.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.242.211.66', 'tags': [], 'project_id': 'c66498417a6a44639e0f7bbd0f3d479b'}}
2024-11-08 06:35:41,267 - INFO - Created VN ctest-vn-46055972
2024-11-08 06:35:41,324 - DEBUG - VN ctest-vn-46055972 UUID is d59f0e55-7109-4a44-9212-527a92bf4bf1
2024-11-08 06:35:41,461 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-61664747:ctest-vn-16351376, 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-61664747:ctest-vn-46055972, 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-08 06:35:41,797 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1dfddc96-1dd0-4da2-a6c0-e22e973561c4', 'name': 'ctest-vn-16351376', 'tenant_id': 'c66498417a6a44639e0f7bbd0f3d479b', 'project_id': 'c66498417a6a44639e0f7bbd0f3d479b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7dc45128-45e3-47d8-acdf-52fdaaf96cd2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61664747', 'ctest-vn-16351376'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61664747', 'ctest-policy-allow-all-10850093']], 'subnet_ipam': [{'subnet_cidr': '53.179.118.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-08 06:35:42,049 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd59f0e55-7109-4a44-9212-527a92bf4bf1', 'name': 'ctest-vn-46055972', 'tenant_id': 'c66498417a6a44639e0f7bbd0f3d479b', 'project_id': 'c66498417a6a44639e0f7bbd0f3d479b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['707b4835-f1eb-4c8b-a342-5966495265db'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61664747', 'ctest-vn-46055972'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61664747', 'ctest-policy-allow-all-10850093']], 'subnet_ipam': [{'subnet_cidr': '2.242.211.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-08 06:35:42,256 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-11-08 06:35:42,562 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-11-08 06:35:42,593 - DEBUG - Requesting: http://10.0.0.41:8082/domain/35cd93eb-89f6-48b1-ab48-06c87bc9cb8e
2024-11-08 06:35:42,611 - DEBUG - Requesting: http://10.0.0.41:8082/project/c6649841-7a6a-4463-9e0f-7bbd0f3d479b
2024-11-08 06:35:42,696 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/1dfddc96-1dd0-4da2-a6c0-e22e973561c4
2024-11-08 06:35:42,716 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/1dfddc96-1dd0-4da2-a6c0-e22e973561c4
2024-11-08 06:35:42,732 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/009a5225-eb7b-456c-b60e-95fa0b375efe
2024-11-08 06:35:42,741 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/009a5225-eb7b-456c-b60e-95fa0b375efe
2024-11-08 06:35:42,750 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/159bde32-669c-4aaa-bbe7-69dc02f6a6ee
2024-11-08 06:35:42,759 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-08 06:35:42,759 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/1dfddc96-1dd0-4da2-a6c0-e22e973561c4
2024-11-08 06:35:42,774 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/009a5225-eb7b-456c-b60e-95fa0b375efe
2024-11-08 06:35:42,797 - INFO - Verified VN network id 8 for VN 1dfddc96-1dd0-4da2-a6c0-e22e973561c4
2024-11-08 06:35:42,798 - INFO - Verifications in API Server for VN ctest-vn-16351376 passed
2024-11-08 06:35:42,798 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/1dfddc96-1dd0-4da2-a6c0-e22e973561c4
2024-11-08 06:35:42,813 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/009a5225-eb7b-456c-b60e-95fa0b375efe
2024-11-08 06:35:42,821 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/009a5225-eb7b-456c-b60e-95fa0b375efe
2024-11-08 06:35:42,831 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/159bde32-669c-4aaa-bbe7-69dc02f6a6ee
2024-11-08 06:35:42,844 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61664747:ctest-vn-16351376', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61664747', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2161125933511101858', 'uuid-lslong': '12015852495557714372'}, 'enable': 'true', 'created': '2024-11-08T06:35:40', 'last-modified': '2024-11-08T06:35:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.079307'}
2024-11-08 06:35:42,851 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-08 06:35:42,851 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16351376 passed
2024-11-08 06:35:42,851 - DEBUG - ====Verifying policy data for ctest-vn-16351376 in API_Server ======
2024-11-08 06:35:42,851 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-11-08 06:35:42,857 - DEBUG - Requesting: http://10.0.0.41:8082/domain/35cd93eb-89f6-48b1-ab48-06c87bc9cb8e
2024-11-08 06:35:42,871 - DEBUG - Requesting: http://10.0.0.41:8082/project/c6649841-7a6a-4463-9e0f-7bbd0f3d479b
2024-11-08 06:35:42,953 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/1dfddc96-1dd0-4da2-a6c0-e22e973561c4
2024-11-08 06:35:42,968 - DEBUG - ==>Verifying data for policy with id: 86f160f9-a624-4cb6-b61e-5fccf0b5d917, fqn: ['default-domain', 'ctest-TestBasicPolicy-61664747', 'ctest-policy-allow-all-10850093']
2024-11-08 06:35:42,968 - INFO - VN ctest-vn-16351376 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-08 06:35:42,968 - DEBUG - Verifying the vn in opserver
2024-11-08 06:35:42,968 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61664747:ctest-vn-16351376 virtual network link through opserver 10.0.0.41
2024-11-08 06:35:42,968 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2024-11-08 06:35:43,266 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2024-11-08 06:35:43,331 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61664747:ctest-vn-16351376', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61664747:ctest-vn-16351376?flat'}
2024-11-08 06:35:43,331 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61664747:ctest-vn-16351376 is found in opserver
2024-11-08 06:35:43,342 - DEBUG - Do not have enough data to verify VN in agent
2024-11-08 06:35:43,349 - DEBUG - VRF ids for VN ctest-vn-16351376: {}
2024-11-08 06:35:43,349 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-11-08 06:35:43,356 - DEBUG - Requesting: http://10.0.0.41:8082/domain/35cd93eb-89f6-48b1-ab48-06c87bc9cb8e
2024-11-08 06:35:43,370 - DEBUG - Requesting: http://10.0.0.41:8082/project/c6649841-7a6a-4463-9e0f-7bbd0f3d479b
2024-11-08 06:35:43,448 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/d59f0e55-7109-4a44-9212-527a92bf4bf1
2024-11-08 06:35:43,466 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/d59f0e55-7109-4a44-9212-527a92bf4bf1
2024-11-08 06:35:43,480 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/54aa133f-25f9-4887-9dd4-1f435a661ba0
2024-11-08 06:35:43,489 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/54aa133f-25f9-4887-9dd4-1f435a661ba0
2024-11-08 06:35:43,498 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/ba390150-d83f-4245-8753-84ff23a42c43
2024-11-08 06:35:43,506 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-08 06:35:43,507 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/d59f0e55-7109-4a44-9212-527a92bf4bf1
2024-11-08 06:35:43,520 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/54aa133f-25f9-4887-9dd4-1f435a661ba0
2024-11-08 06:35:43,542 - INFO - Verified VN network id 9 for VN d59f0e55-7109-4a44-9212-527a92bf4bf1
2024-11-08 06:35:43,542 - INFO - Verifications in API Server for VN ctest-vn-46055972 passed
2024-11-08 06:35:43,542 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/d59f0e55-7109-4a44-9212-527a92bf4bf1
2024-11-08 06:35:43,556 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/54aa133f-25f9-4887-9dd4-1f435a661ba0
2024-11-08 06:35:43,565 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/54aa133f-25f9-4887-9dd4-1f435a661ba0
2024-11-08 06:35:43,573 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/ba390150-d83f-4245-8753-84ff23a42c43
2024-11-08 06:35:43,586 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61664747:ctest-vn-46055972', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61664747', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15393037811507087940', 'uuid-lslong': '10525565965519768561'}, 'enable': 'true', 'created': '2024-11-08T06:35:41', 'last-modified': '2024-11-08T06:35:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.560579'}
2024-11-08 06:35:43,593 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-08 06:35:43,593 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46055972 passed
2024-11-08 06:35:43,593 - DEBUG - ====Verifying policy data for ctest-vn-46055972 in API_Server ======
2024-11-08 06:35:43,593 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-11-08 06:35:43,600 - DEBUG - Requesting: http://10.0.0.41:8082/domain/35cd93eb-89f6-48b1-ab48-06c87bc9cb8e
2024-11-08 06:35:43,615 - DEBUG - Requesting: http://10.0.0.41:8082/project/c6649841-7a6a-4463-9e0f-7bbd0f3d479b
2024-11-08 06:35:43,692 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/d59f0e55-7109-4a44-9212-527a92bf4bf1
2024-11-08 06:35:43,709 - DEBUG - ==>Verifying data for policy with id: 86f160f9-a624-4cb6-b61e-5fccf0b5d917, fqn: ['default-domain', 'ctest-TestBasicPolicy-61664747', 'ctest-policy-allow-all-10850093']
2024-11-08 06:35:43,709 - INFO - VN ctest-vn-46055972 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-08 06:35:43,709 - DEBUG - Verifying the vn in opserver
2024-11-08 06:35:43,709 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61664747:ctest-vn-46055972 virtual network link through opserver 10.0.0.41
2024-11-08 06:35:43,709 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2024-11-08 06:35:43,721 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61664747:ctest-vn-46055972', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61664747:ctest-vn-46055972?flat'}
2024-11-08 06:35:43,721 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61664747:ctest-vn-46055972 is found in opserver
2024-11-08 06:35:43,732 - DEBUG - Do not have enough data to verify VN in agent
2024-11-08 06:35:43,737 - DEBUG - VRF ids for VN ctest-vn-46055972: {}
2024-11-08 06:35:43,800 - DEBUG - Services list from nova: [